mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
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:
committed by
Mario Romano
parent
cf85840350
commit
5b5916bfb1
@@ -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}`;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -16,7 +16,7 @@
|
||||
<template>
|
||||
<div class="empty_template">
|
||||
<div class="no-result-message">{{ 'SEARCH.RESULTS.NONE' | translate:{searchTerm: searchTerm} }}</div>
|
||||
<img [src]="baseComponentPath + '/assets/images/empty_doc_lib.svg'" class="no-result__empty_doc_lib">
|
||||
<img [src]="emptyFolderImageUrl" class="no-result__empty_doc_lib">
|
||||
</div>
|
||||
</template>
|
||||
<template>
|
||||
|
@@ -32,6 +32,8 @@ export class AlfrescoSearchComponent implements OnChanges, OnInit {
|
||||
static SINGLE_CLICK_NAVIGATION: string = 'click';
|
||||
static DOUBLE_CLICK_NAVIGATION: string = 'dblclick';
|
||||
|
||||
private baseComponentPath: string = module.id.replace('components/alfresco-search.component.js', '');
|
||||
|
||||
@Input()
|
||||
searchTerm: string = '';
|
||||
|
||||
@@ -50,6 +52,9 @@ export class AlfrescoSearchComponent implements OnChanges, OnInit {
|
||||
@Input()
|
||||
navigationMode: string = AlfrescoSearchComponent.DOUBLE_CLICK_NAVIGATION; // click|dblclick
|
||||
|
||||
@Input()
|
||||
emptyFolderImageUrl: string = this.baseComponentPath + 'assets/images/empty_doc_lib.svg';
|
||||
|
||||
@Output()
|
||||
resultsLoad = new EventEmitter();
|
||||
|
||||
@@ -57,19 +62,12 @@ export class AlfrescoSearchComponent implements OnChanges, OnInit {
|
||||
preview: EventEmitter<any> = new EventEmitter<any>();
|
||||
|
||||
results: any = null;
|
||||
|
||||
pagination: Pagination;
|
||||
|
||||
errorMessage;
|
||||
|
||||
queryParamName = 'q';
|
||||
|
||||
skipCount: number = 0;
|
||||
|
||||
nodeResults: NodePaging;
|
||||
|
||||
baseComponentPath: string = module.id.replace('/components/alfresco-search.component.js', '');
|
||||
|
||||
constructor(private searchService: AlfrescoSearchService,
|
||||
private translateService: AlfrescoTranslationService,
|
||||
@Optional() private route: ActivatedRoute) {
|
||||
|
Reference in New Issue
Block a user