mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
committed by
Eugenio Romano
parent
8959476941
commit
0b246b8211
@@ -22,7 +22,6 @@ import { AlfrescoSearchService, SearchOptions } from './../services/alfresco-sea
|
||||
import { AlfrescoThumbnailService } from './../services/alfresco-thumbnail.service';
|
||||
|
||||
@Component({
|
||||
moduleId: module.id,
|
||||
selector: 'alfresco-search-autocomplete',
|
||||
templateUrl: './alfresco-search-autocomplete.component.html',
|
||||
styleUrls: ['./alfresco-search-autocomplete.component.css']
|
||||
@@ -68,8 +67,6 @@ export class AlfrescoSearchAutocompleteComponent implements OnInit, OnChanges {
|
||||
|
||||
@ViewChild('resultsTableBody', {}) resultsTableBody: ElementRef;
|
||||
|
||||
baseComponentPath: string = module.id.replace('components/alfresco-search-autocomplete.component.js', '');
|
||||
|
||||
constructor(private searchService: AlfrescoSearchService,
|
||||
private translateService: AlfrescoTranslationService,
|
||||
private thumbnailService: AlfrescoThumbnailService) {
|
||||
@@ -130,12 +127,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 require('../assets/images/ft_ic_folder.svg');
|
||||
}
|
||||
}
|
||||
|
||||
resolveIconPath(icon: string): string {
|
||||
return `${this.baseComponentPath}assets/images/${icon}`;
|
||||
return require('../assets/images/' + icon);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user