diff --git a/src-ui/src/app/components/dashboard/widgets/saved-view-widget/saved-view-widget.component.html b/src-ui/src/app/components/dashboard/widgets/saved-view-widget/saved-view-widget.component.html index 07f24c153..00a794ec7 100644 --- a/src-ui/src/app/components/dashboard/widgets/saved-view-widget/saved-view-widget.component.html +++ b/src-ui/src/app/components/dashboard/widgets/saved-view-widget/saved-view-widget.component.html @@ -13,7 +13,7 @@ {{doc.created | customDate}} - {{doc.title | documentTitle}} + {{doc.title | documentTitle}} diff --git a/src-ui/src/app/components/dashboard/widgets/saved-view-widget/saved-view-widget.component.ts b/src-ui/src/app/components/dashboard/widgets/saved-view-widget/saved-view-widget.component.ts index 3057452f0..e677a6e2f 100644 --- a/src-ui/src/app/components/dashboard/widgets/saved-view-widget/saved-view-widget.component.ts +++ b/src-ui/src/app/components/dashboard/widgets/saved-view-widget/saved-view-widget.component.ts @@ -6,6 +6,8 @@ import { PaperlessSavedView } from 'src/app/data/paperless-saved-view' import { DocumentListViewService } from 'src/app/services/document-list-view.service' import { ConsumerStatusService } from 'src/app/services/consumer-status.service' import { DocumentService } from 'src/app/services/rest/document.service' +import { PaperlessTag } from 'src/app/data/paperless-tag' +import { FILTER_HAS_TAGS_ALL } from 'src/app/data/filter-rule-type' @Component({ selector: 'app-saved-view-widget', @@ -62,4 +64,10 @@ export class SavedViewWidgetComponent implements OnInit, OnDestroy { this.router.navigate(['documents']) } } + + clickTag(tag: PaperlessTag) { + this.list.quickFilter([ + { rule_type: FILTER_HAS_TAGS_ALL, value: tag.id.toString() }, + ]) + } }