|
|
|
@ -88,6 +88,7 @@ export class AddExistingPaneComponent extends UntilDestroyedMixin implements OnI |
|
|
|
|
text = { |
|
|
|
|
empty_state: this.I18n.t('js.team_planner.quick_add.empty_state'), |
|
|
|
|
placeholder: this.I18n.t('js.team_planner.quick_add.search_placeholder'), |
|
|
|
|
no_results: this.I18n.t('js.autocompleter.notFoundText'), |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
image = { |
|
|
|
@ -202,6 +203,14 @@ export class AddExistingPaneComponent extends UntilDestroyedMixin implements OnI |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
searchStringEmpty():boolean { |
|
|
|
|
return this.searchString$.getValue().length === 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
noResultsText():string { |
|
|
|
|
return this.searchStringEmpty() ? this.text.empty_state : this.text.no_results; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private addExistingFilters(filters:ApiV3FilterBuilder) { |
|
|
|
|
const query = this.querySpace.query.value; |
|
|
|
|
if (query?.filters) { |
|
|
|
|