This commit is contained in:
Mario Romano
2016-05-19 02:09:40 +01:00
parent dde61f2302
commit 337f00999d
46 changed files with 526 additions and 667 deletions

View File

@@ -15,17 +15,17 @@
* limitations under the License.
*/
import {Component} from 'angular2/core';
import { Component } from 'angular2/core';
import {
DOCUMENT_LIST_DIRECTIVES,
DOCUMENT_LIST_PROVIDERS,
DocumentActionsService
} from 'ng2-alfresco-documentlist/ng2-alfresco-documentlist';
import {MDL} from 'ng2-alfresco-core/material';
import {ALFRESCO_ULPOAD_COMPONENT} from 'ng2-alfresco-upload/ng2-alfresco-upload';
import {TranslatePipe} from 'ng2-translate/ng2-translate';
import { MDL } from 'ng2-alfresco-core/material';
import { ALFRESCO_ULPOAD_COMPONENT } from 'ng2-alfresco-upload/ng2-alfresco-upload';
import { TranslatePipe } from 'ng2-translate/ng2-translate';
declare let __moduleName:string;
declare let __moduleName: string;
@Component({
moduleId: __moduleName,
@@ -68,7 +68,7 @@ export class FilesComponent {
}
getRelativeDirectory(currentFolderPath: string): string {
if(currentFolderPath.indexOf('/Sites/swsdp/documentLibrary/') !=-1) {
if (currentFolderPath.indexOf('/Sites/swsdp/documentLibrary/') != -1) {
return currentFolderPath.replace('/Sites/swsdp/documentLibrary/', '')
} else {
return currentFolderPath.replace('/Sites/swsdp/documentLibrary', '')

View File

@@ -15,15 +15,15 @@
* limitations under the License.
*/
import {bootstrap} from 'angular2/platform/browser';
import {AppComponent} from './app.component';
import {ROUTER_PROVIDERS} from 'angular2/router';
import {HTTP_PROVIDERS} from 'angular2/http';
import {TranslateLoader, TranslateService} from 'ng2-translate/ng2-translate';
import {ALFRESCO_AUTHENTICATION} from 'ng2-alfresco-login/ng2-alfresco-login';
import {ALFRESCO_CORE_PROVIDERS} from 'ng2-alfresco-core/services';
import {AlfrescoTranslationLoader} from 'ng2-alfresco-core/services';
import {provide} from 'angular2/core';
import { bootstrap } from 'angular2/platform/browser';
import { AppComponent } from './app.component';
import { ROUTER_PROVIDERS } from 'angular2/router';
import { HTTP_PROVIDERS } from 'angular2/http';
import { TranslateLoader, TranslateService } from 'ng2-translate/ng2-translate';
import { ALFRESCO_AUTHENTICATION } from 'ng2-alfresco-login/ng2-alfresco-login';
import { ALFRESCO_CORE_PROVIDERS } from 'ng2-alfresco-core/services';
import { AlfrescoTranslationLoader } from 'ng2-alfresco-core/services';
import { provide } from 'angular2/core';
bootstrap(AppComponent, [
ROUTER_PROVIDERS,