Fixes titles and subtitles on Dataset Description's "External References" tab.
This commit is contained in:
parent
b5bf65413c
commit
1b83d57bcd
|
@ -75,8 +75,8 @@ export class DatasetExternalReferencesEditorComponent extends BaseComponent impl
|
||||||
this.registriesAutoCompleteConfiguration = {
|
this.registriesAutoCompleteConfiguration = {
|
||||||
filterFn: this.searchDatasetExternalRegistries.bind(this),
|
filterFn: this.searchDatasetExternalRegistries.bind(this),
|
||||||
initialItems: (type) => this.searchDatasetExternalRegistries('', type),
|
initialItems: (type) => this.searchDatasetExternalRegistries('', type),
|
||||||
displayFn: (item) => item ? item.label : null,
|
displayFn: (item) => item ? item.name : null,
|
||||||
titleFn: (item) => item ? item.label : null,
|
titleFn: (item) => item ? item.name : null,
|
||||||
subtitleFn: (item) => item.tag ? this.language.instant('TYPES.EXTERNAL-DATASET-TYPE.SOURCE:') + item.tag : this.language.instant('TYPES.EXTERNAL-DATASET-TYPE.NO-SOURCE')
|
subtitleFn: (item) => item.tag ? this.language.instant('TYPES.EXTERNAL-DATASET-TYPE.SOURCE:') + item.tag : this.language.instant('TYPES.EXTERNAL-DATASET-TYPE.NO-SOURCE')
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ export class DatasetExternalReferencesEditorComponent extends BaseComponent impl
|
||||||
filterFn: this.searchDatasetExternalServices.bind(this),
|
filterFn: this.searchDatasetExternalServices.bind(this),
|
||||||
initialItems: (type) => this.searchDatasetExternalServices('', type),
|
initialItems: (type) => this.searchDatasetExternalServices('', type),
|
||||||
displayFn: (item) => item ? item.label : null,
|
displayFn: (item) => item ? item.label : null,
|
||||||
titleFn: (item) => item ? item.label : null,
|
titleFn: (item) => item ? item.name : null,
|
||||||
subtitleFn: (item) => item.tag ? this.language.instant('TYPES.EXTERNAL-DATASET-TYPE.SOURCE:') + item.tag : this.language.instant('TYPES.EXTERNAL-DATASET-TYPE.NO-SOURCE')
|
subtitleFn: (item) => item.tag ? this.language.instant('TYPES.EXTERNAL-DATASET-TYPE.SOURCE:') + item.tag : this.language.instant('TYPES.EXTERNAL-DATASET-TYPE.NO-SOURCE')
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -100,7 +100,8 @@ export class DatasetExternalReferencesEditorComponent extends BaseComponent impl
|
||||||
filterFn: this.searchDatasetTags.bind(this),
|
filterFn: this.searchDatasetTags.bind(this),
|
||||||
initialItems: (type) => this.searchDatasetTags('', type),
|
initialItems: (type) => this.searchDatasetTags('', type),
|
||||||
displayFn: (item) => item ? item.name : null,
|
displayFn: (item) => item ? item.name : null,
|
||||||
titleFn: (item) => item.tag ? this.language.instant('TYPES.EXTERNAL-DATASET-TYPE.SOURCE:') + item.name : this.language.instant('TYPES.EXTERNAL-DATASET-TYPE.NO-SOURCE')
|
titleFn: (item) => item ? item.name: null,
|
||||||
|
subtitleFn: (item) => item.tag ? this.language.instant('TYPES.EXTERNAL-DATASET-TYPE.SOURCE:') + item.name : this.language.instant('TYPES.EXTERNAL-DATASET-TYPE.NO-SOURCE')
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue