mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-24 14:31:41 +00:00
code fixes
- interpolate ng2 components html content - fix: load images for Login - fix: load images for User Info - fix: load images for Document List - fix: decorator inheritance issue for Form - fix: load images for Search
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
<div class="document-list__this-space-is-empty">This folder is empty</div>
|
||||
<div class="document-list__drag-drop">Drag and Drop</div>
|
||||
<div class="document-list__any-files-here-to-add">any files here to add</div>
|
||||
<img [src]="baseComponentPath + '/img/empty_doc_lib.svg'" class="document-list__empty_doc_lib">
|
||||
<img src="./../img/empty_doc_lib.svg" class="document-list__empty_doc_lib">
|
||||
</div>
|
||||
</template>
|
||||
</no-content-template>
|
||||
|
@@ -53,8 +53,6 @@ export class DocumentList implements OnInit, AfterContentInit {
|
||||
|
||||
DEFAULT_ROOT_FOLDER: string = '/';
|
||||
|
||||
baseComponentPath = module.id.replace('/components/document-list.js', '');
|
||||
|
||||
@Input()
|
||||
set rootPath(value: string) {
|
||||
this.data.rootPath = value || this.data.DEFAULT_ROOT_PATH;
|
||||
@@ -68,7 +66,7 @@ export class DocumentList implements OnInit, AfterContentInit {
|
||||
}
|
||||
|
||||
@Input()
|
||||
fallbackThubnail: string = this.baseComponentPath + '/img/ft_ic_miscellaneous.svg';
|
||||
fallbackThubnail: string = require('./../img/ft_ic_miscellaneous.svg');
|
||||
|
||||
@Input()
|
||||
navigate: boolean = true;
|
||||
@@ -155,7 +153,7 @@ export class DocumentList implements OnInit, AfterContentInit {
|
||||
private ngZone: NgZone,
|
||||
private translate: AlfrescoTranslationService) {
|
||||
|
||||
this.data = new ShareDataTableAdapter(this.documentListService, this.baseComponentPath, []);
|
||||
this.data = new ShareDataTableAdapter(this.documentListService, './..', []);
|
||||
|
||||
if (translate) {
|
||||
translate.addTranslationFolder('ng2-alfresco-documentlist', 'node_modules/ng2-alfresco-documentlist/dist/src');
|
||||
|
Reference in New Issue
Block a user