fix image paths for components (#1696)

* fix Login image paths

* fix TaskList image paths

* fix DocumentList image paths

* fix Search image paths
This commit is contained in:
Denys Vuika
2017-03-13 10:42:18 +00:00
committed by Mario Romano
parent f85d9a5934
commit e2ced9ff9a
14 changed files with 40 additions and 46 deletions

View File

@@ -68,7 +68,7 @@ export class AlfrescoSearchAutocompleteComponent implements OnInit, OnChanges {
@ViewChild('resultsTableBody', {}) resultsTableBody: ElementRef;
baseComponentPath: string = module.id.replace('/components/alfresco-search-autocomplete.component.js', '');
baseComponentPath: string = module.id.replace('components/alfresco-search-autocomplete.component.js', '');
constructor(private searchService: AlfrescoSearchService,
private translateService: AlfrescoTranslationService,
@@ -130,12 +130,12 @@ export class AlfrescoSearchAutocompleteComponent implements OnInit, OnChanges {
return this.resolveIconPath(icon);
}
if (node.entry.isFolder) {
return `${this.baseComponentPath}/assets/images/ft_ic_folder.svg`;
return `${this.baseComponentPath}assets/images/ft_ic_folder.svg`;
}
}
resolveIconPath(icon: string): string {
return `${this.baseComponentPath}/assets/images/${icon}`;
return `${this.baseComponentPath}assets/images/${icon}`;
}
/**