Back to Paperless Ngx

Suggestions Dropdown.Component

src-ui/src/app/components/common/suggestions-dropdown/suggestions-dropdown.component.html

3.0.3776 B
Original Source

@if (loading()) {

} @else { } Suggest @if (totalSuggestions > 0) { {{ totalSuggestions }} } @if (aiEnabled()) { Show suggestions

@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) { {{ tag }} } } @if (suggestions()?.suggested_document_types.length > 0) { Document Types @for (type of suggestions().suggested_document_types; track type) { {{ type }} } } @if (suggestions()?.suggested_correspondents.length > 0) { Correspondents @for (correspondent of suggestions().suggested_correspondents; track correspondent) { {{ correspondent }} } }

}