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>
This commit is contained in:
parent
8364f7f703
commit
85a7838a96
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user