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 2 days ago
committed by GitHub
parent
commit
85a7838a96
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 8
      apps/client/src/locales/messages.ca.xlf
  3. 8
      apps/client/src/locales/messages.de.xlf
  4. 8
      apps/client/src/locales/messages.es.xlf
  5. 8
      apps/client/src/locales/messages.fr.xlf
  6. 8
      apps/client/src/locales/messages.it.xlf
  7. 8
      apps/client/src/locales/messages.nl.xlf
  8. 8
      apps/client/src/locales/messages.pl.xlf
  9. 8
      apps/client/src/locales/messages.pt.xlf
  10. 8
      apps/client/src/locales/messages.tr.xlf
  11. 7
      apps/client/src/locales/messages.xlf
  12. 8
      apps/client/src/locales/messages.zh.xlf
  13. 6
      libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html
  14. 6
      libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.ts

1
CHANGELOG.md

@ -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

8
apps/client/src/locales/messages.ca.xlf

@ -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>

8
apps/client/src/locales/messages.de.xlf

@ -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>

8
apps/client/src/locales/messages.es.xlf

@ -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>

8
apps/client/src/locales/messages.fr.xlf

@ -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>

8
apps/client/src/locales/messages.it.xlf

@ -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>

8
apps/client/src/locales/messages.nl.xlf

@ -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>

8
apps/client/src/locales/messages.pl.xlf

@ -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>

8
apps/client/src/locales/messages.pt.xlf

@ -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>

8
apps/client/src/locales/messages.tr.xlf

@ -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>

7
apps/client/src/locales/messages.xlf

@ -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>

8
apps/client/src/locales/messages.zh.xlf

@ -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>

6
libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.html

@ -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>

6
libs/ui/src/lib/symbol-autocomplete/symbol-autocomplete.component.ts

@ -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…
Cancel
Save