Browse Source
Feature/show message if no results have been found in activity dialog (#3854 )
* Show message if no results have been found in activity dialog
* Update changelog
---------
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
Co-authored-by: Thomas Kaul <4159106+dtslvr@users.noreply.github.com>
pull/3863/head
dw-0
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
14 changed files with
97 additions and
3 deletions
CHANGELOG.md
apps/client/src/locales/messages.ca.xlf
apps/client/src/locales/messages.de.xlf
apps/client/src/locales/messages.es.xlf
apps/client/src/locales/messages.fr.xlf
apps/client/src/locales/messages.it.xlf
apps/client/src/locales/messages.nl.xlf
apps/client/src/locales/messages.pl.xlf
apps/client/src/locales/messages.pt.xlf
apps/client/src/locales/messages.tr.xlf
apps/client/src/locales/messages.xlf
apps/client/src/locales/messages.zh.xlf
libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html
libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.ts
@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Added a message to the search asset component if no results have been found in the create or update activity dialog
- Added support to customize the rule thresholds in the _X-ray_ section (experimental)
### Changed
@ -7258,6 +7258,14 @@
<context context-type="linenumber">280</context>
</context-group>
</trans-unit>
<trans-unit id="b225488f8b209e9704760dc9f5d99845a5d07bf6" datatype="html">
<source>Oops! Could not find any assets.</source>
<target state="new">Oops! Could not find any assets.</target>
<context-group purpose="location">
<context context-type="sourcefile">libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html</context>
<context context-type="linenumber">16</context>
</context-group>
</trans-unit>
</body>
</file>
</xliff>
@ -7258,6 +7258,14 @@
<context context-type="linenumber">280</context>
</context-group>
</trans-unit>
<trans-unit id="b225488f8b209e9704760dc9f5d99845a5d07bf6" datatype="html">
<source>Oops! Could not find any assets.</source>
<target state="translated">Ups! Es konnten leider keine Assets gefunden werden.</target>
<context-group purpose="location">
<context context-type="sourcefile">libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html</context>
<context context-type="linenumber">16</context>
</context-group>
</trans-unit>
</body>
</file>
</xliff>
@ -7259,6 +7259,14 @@
<context context-type="linenumber">280</context>
</context-group>
</trans-unit>
<trans-unit id="b225488f8b209e9704760dc9f5d99845a5d07bf6" datatype="html">
<source>Oops! Could not find any assets.</source>
<target state="new">Oops! Could not find any assets.</target>
<context-group purpose="location">
<context context-type="sourcefile">libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html</context>
<context context-type="linenumber">16</context>
</context-group>
</trans-unit>
</body>
</file>
</xliff>
@ -7258,6 +7258,14 @@
<context context-type="linenumber">280</context>
</context-group>
</trans-unit>
<trans-unit id="b225488f8b209e9704760dc9f5d99845a5d07bf6" datatype="html">
<source>Oops! Could not find any assets.</source>
<target state="new">Oops! Could not find any assets.</target>
<context-group purpose="location">
<context context-type="sourcefile">libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html</context>
<context context-type="linenumber">16</context>
</context-group>
</trans-unit>
</body>
</file>
</xliff>
@ -7259,6 +7259,14 @@
<context context-type="linenumber">280</context>
</context-group>
</trans-unit>
<trans-unit id="b225488f8b209e9704760dc9f5d99845a5d07bf6" datatype="html">
<source>Oops! Could not find any assets.</source>
<target state="new">Oops! Could not find any assets.</target>
<context-group purpose="location">
<context context-type="sourcefile">libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html</context>
<context context-type="linenumber">16</context>
</context-group>
</trans-unit>
</body>
</file>
</xliff>
@ -7258,6 +7258,14 @@
<context context-type="linenumber">280</context>
</context-group>
</trans-unit>
<trans-unit id="b225488f8b209e9704760dc9f5d99845a5d07bf6" datatype="html">
<source>Oops! Could not find any assets.</source>
<target state="new">Oops! Could not find any assets.</target>
<context-group purpose="location">
<context context-type="sourcefile">libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html</context>
<context context-type="linenumber">16</context>
</context-group>
</trans-unit>
</body>
</file>
</xliff>
@ -7258,6 +7258,14 @@
<context context-type="linenumber">280</context>
</context-group>
</trans-unit>
<trans-unit id="b225488f8b209e9704760dc9f5d99845a5d07bf6" datatype="html">
<source>Oops! Could not find any assets.</source>
<target state="new">Oops! Could not find any assets.</target>
<context-group purpose="location">
<context context-type="sourcefile">libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html</context>
<context context-type="linenumber">16</context>
</context-group>
</trans-unit>
</body>
</file>
</xliff>
@ -7258,6 +7258,14 @@
<context context-type="linenumber">280</context>
</context-group>
</trans-unit>
<trans-unit id="b225488f8b209e9704760dc9f5d99845a5d07bf6" datatype="html">
<source>Oops! Could not find any assets.</source>
<target state="new">Oops! Could not find any assets.</target>
<context-group purpose="location">
<context context-type="sourcefile">libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html</context>
<context context-type="linenumber">16</context>
</context-group>
</trans-unit>
</body>
</file>
</xliff>
@ -7258,6 +7258,14 @@
<context context-type="linenumber">280</context>
</context-group>
</trans-unit>
<trans-unit id="b225488f8b209e9704760dc9f5d99845a5d07bf6" datatype="html">
<source>Oops! Could not find any assets.</source>
<target state="new">Oops! Could not find any assets.</target>
<context-group purpose="location">
<context context-type="sourcefile">libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html</context>
<context context-type="linenumber">16</context>
</context-group>
</trans-unit>
</body>
</file>
</xliff>
@ -6565,6 +6565,13 @@
<context context-type="linenumber">49</context>
</context-group>
</trans-unit>
<trans-unit id="b225488f8b209e9704760dc9f5d99845a5d07bf6" datatype="html">
<source>Oops! Could not find any assets.</source>
<context-group purpose="location">
<context context-type="sourcefile">libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html</context>
<context context-type="linenumber">16</context>
</context-group>
</trans-unit>
</body>
</file>
</xliff>
@ -7259,6 +7259,14 @@
<context context-type="linenumber">280</context>
</context-group>
</trans-unit>
<trans-unit id="b225488f8b209e9704760dc9f5d99845a5d07bf6" datatype="html">
<source>Oops! Could not find any assets.</source>
<target state="new">Oops! Could not find any assets.</target>
<context-group purpose="location">
<context context-type="sourcefile">libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html</context>
<context context-type="linenumber">16</context>
</context-group>
</trans-unit>
</body>
</file>
</xliff>
@ -31,6 +31,12 @@
}
< / small >
< / mat-option >
} @empty {
@if (control.value?.length > 1) {
< mat-option class = "line-height-1" disabled = "true" i18n
>Oops! Could not find any assets.
< / mat-option >
}
}
}
< / mat-autocomplete >
@ -117,17 +117,17 @@ export class GfSymbolAutocompleteComponent
this . control . valueChanges
. pipe (
debounceTime ( 400 ) ,
distinctUntilChanged ( ) ,
filter ( ( query ) = > {
return isString ( query ) && query . length > 1 ;
} ) ,
takeUntil ( this . unsubscribeSubject ) ,
tap ( ( ) = > {
this . isLoading = true ;
this . changeDetectorRef . markForCheck ( ) ;
} ) ,
debounceTime ( 400 ) ,
distinctUntilChanged ( ) ,
takeUntil ( this . unsubscribeSubject ) ,
switchMap ( ( query : string ) = > {
return this . dataService . fetchSymbols ( {
query ,