From df46f53e38b16b38d66524ecda46780c02c30498 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sun, 21 Apr 2024 09:53:49 -0700 Subject: [PATCH] Include disaply fields and mode for save view as --- .../app/components/document-list/document-list.component.ts | 2 ++ src/documents/models.py | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src-ui/src/app/components/document-list/document-list.component.ts b/src-ui/src/app/components/document-list/document-list.component.ts index 032fc79e7..e328c3e0e 100644 --- a/src-ui/src/app/components/document-list/document-list.component.ts +++ b/src-ui/src/app/components/document-list/document-list.component.ts @@ -266,6 +266,8 @@ export class DocumentListComponent filter_rules: this.list.filterRules, sort_reverse: this.list.sortReverse, sort_field: this.list.sortField, + display_mode: this.list.displayMode, + display_fields: this.activeDisplayFields, } this.savedViewService diff --git a/src/documents/models.py b/src/documents/models.py index 2460825a7..6d8a49350 100644 --- a/src/documents/models.py +++ b/src/documents/models.py @@ -404,9 +404,13 @@ class SavedView(ModelWithOwner): CREATED = ("created", _("Created")) ADDED = ("added", _("Added")) TAGS = ("tag"), _("Tags") - DOCUMENT_TYPE = ("documenttype", _("Document Type")) CORRESPONDENT = ("correspondent", _("Correspondent")) + DOCUMENT_TYPE = ("documenttype", _("Document Type")) STORAGE_PATH = ("storagepath", _("Storage Path")) + NOTES = ("note", _("Note")) + OWNER = ("owner", _("Owner")) + SHARED = ("shared", _("Shared")) + ASN = ("asn", _("ASN")) CUSTOM_FIELD = ("custom_field_%d", ("Custom Field")) name = models.CharField(_("name"), max_length=128)