mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-08-07 17:48:54 +00:00
committed by
Eugenio Romano
parent
8959476941
commit
0b246b8211
@@ -20,7 +20,6 @@ import { MinimalNodeEntryEntity, PathElementEntity } from 'alfresco-js-api';
|
||||
import { DocumentListComponent } from '../document-list.component';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'alfresco-document-list-breadcrumb',
|
||||
templateUrl: './breadcrumb.component.html',
|
||||
styleUrls: ['./breadcrumb.component.css']
|
||||
|
@@ -38,7 +38,6 @@ import { NodeEntityEvent, NodeEntryEvent } from './node.event';
|
||||
declare var module: any;
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'alfresco-document-list',
|
||||
styleUrls: ['./document-list.component.css'],
|
||||
templateUrl: './document-list.component.html'
|
||||
@@ -49,12 +48,10 @@ export class DocumentListComponent implements OnInit, OnChanges, AfterContentIni
|
||||
static DOUBLE_CLICK_NAVIGATION: string = 'dblclick';
|
||||
static DEFAULT_PAGE_SIZE: number = 20;
|
||||
|
||||
baseComponentPath = module.id.replace('components/document-list.component.js', '');
|
||||
|
||||
@ContentChild(DataColumnListComponent) columnList: DataColumnListComponent;
|
||||
|
||||
@Input()
|
||||
fallbackThumbnail: string = this.baseComponentPath + 'assets/images/ft_ic_miscellaneous.svg';
|
||||
fallbackThumbnail: string = require('../assets/images/ft_ic_miscellaneous.svg');
|
||||
|
||||
@Input()
|
||||
navigate: boolean = true;
|
||||
@@ -87,7 +84,7 @@ export class DocumentListComponent implements OnInit, OnChanges, AfterContentIni
|
||||
pageSize: number = DocumentListComponent.DEFAULT_PAGE_SIZE;
|
||||
|
||||
@Input()
|
||||
emptyFolderImageUrl: string = this.baseComponentPath + 'assets/images/empty_doc_lib.svg';
|
||||
emptyFolderImageUrl: string = require('../assets/images/empty_doc_lib.svg');
|
||||
|
||||
@Input()
|
||||
allowDropFiles: boolean = false;
|
||||
@@ -155,7 +152,7 @@ export class DocumentListComponent implements OnInit, OnChanges, AfterContentIni
|
||||
private ngZone: NgZone,
|
||||
private translateService: AlfrescoTranslationService) {
|
||||
|
||||
this.data = new ShareDataTableAdapter(this.documentListService, this.baseComponentPath);
|
||||
this.data = new ShareDataTableAdapter(this.documentListService);
|
||||
|
||||
if (translateService) {
|
||||
translateService.addTranslationFolder('ng2-alfresco-documentlist', 'node_modules/ng2-alfresco-documentlist/src');
|
||||
@@ -205,7 +202,7 @@ export class DocumentListComponent implements OnInit, OnChanges, AfterContentIni
|
||||
}
|
||||
|
||||
if (!this.data) {
|
||||
this.data = new ShareDataTableAdapter(this.documentListService, this.baseComponentPath, schema);
|
||||
this.data = new ShareDataTableAdapter(this.documentListService, schema);
|
||||
} else if (schema && schema.length > 0) {
|
||||
this.data.setColumns(schema);
|
||||
}
|
||||
|
@@ -28,7 +28,6 @@ declare let dialogPolyfill: any;
|
||||
const ERROR_FOLDER_ALREADY_EXIST = 409;
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'alfresco-document-menu-action',
|
||||
styleUrls: ['./document-menu-action.component.css'],
|
||||
templateUrl: './document-menu-action.component.html'
|
||||
@@ -93,10 +92,8 @@ export class DocumentMenuActionComponent implements OnChanges {
|
||||
let errorMessagePlaceholder = this.getErrorMessage(error.response);
|
||||
this.message = this.formatString(errorMessagePlaceholder, [name]);
|
||||
this.error.emit({ message: this.message });
|
||||
this.logService.error(this.message);
|
||||
} else {
|
||||
this.error.emit(error);
|
||||
this.logService.error(error);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user