From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 23 Apr 2025 16:25:54 +0000 (-0700) Subject: Basic handling of non-AI response X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74aaf18630a92350caab5e3383f683f4fba86e92;p=thirdparty%2Fpaperless-ngx.git Basic handling of non-AI response --- diff --git a/src-ui/src/app/components/common/suggestions-dropdown/suggestions-dropdown.component.html b/src-ui/src/app/components/common/suggestions-dropdown/suggestions-dropdown.component.html index 7f0edca8f..ac9d7c47e 100644 --- a/src-ui/src/app/components/common/suggestions-dropdown/suggestions-dropdown.component.html +++ b/src-ui/src/app/components/common/suggestions-dropdown/suggestions-dropdown.component.html @@ -17,26 +17,31 @@
-
- @if (suggestions?.suggested_tags.length > 0) { - Tags - @for (tag of suggestions.suggested_tags; track tag) { - - } +
+ @if (!suggestions?.suggested_tags && !suggestions?.suggested_document_types && !suggestions?.suggested_correspondents) { +
+ No novel suggestions +
+ } + @if (suggestions?.suggested_tags?.length > 0) { + Tags + @for (tag of suggestions.suggested_tags; track tag) { + } - @if (suggestions?.suggested_document_types.length > 0) { -
Document Types
- @for (type of suggestions.suggested_document_types; track type) { - - } + } + @if (suggestions?.suggested_document_types?.length > 0) { +
Document Types
+ @for (type of suggestions.suggested_document_types; track type) { + } - @if (suggestions?.suggested_correspondents.length > 0) { -
Correspondents
- @for (correspondent of suggestions.suggested_correspondents; track correspondent) { - - } + } + @if (suggestions?.suggested_correspondents?.length > 0) { +
Correspondents
+ @for (correspondent of suggestions.suggested_correspondents; track correspondent) { + } -
+ } +