mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 16:25:33 +01:00
Fix: trigger change warning for saved views with default fields if changed (#7865)
This commit is contained in:
parent
7c11a37150
commit
95d1abd416
2 changed files with 18 additions and 8 deletions
|
|
@ -15,7 +15,12 @@ import {
|
|||
isFullTextFilterRule,
|
||||
} from 'src/app/utils/filter-rules'
|
||||
import { FILTER_FULLTEXT_MORELIKE } from 'src/app/data/filter-rule-type'
|
||||
import { DisplayField, DisplayMode, Document } from 'src/app/data/document'
|
||||
import {
|
||||
DEFAULT_DISPLAY_FIELDS,
|
||||
DisplayField,
|
||||
DisplayMode,
|
||||
Document,
|
||||
} from 'src/app/data/document'
|
||||
import { SavedView } from 'src/app/data/saved-view'
|
||||
import { SETTINGS_KEYS } from 'src/app/data/ui-settings'
|
||||
import {
|
||||
|
|
@ -108,6 +113,11 @@ export class DocumentListComponent
|
|||
(this.unmodifiedSavedView.display_fields &&
|
||||
this.unmodifiedSavedView.display_fields.join(',') !==
|
||||
this.activeDisplayFields.join(',')) ||
|
||||
(!this.unmodifiedSavedView.display_fields &&
|
||||
this.activeDisplayFields.join(',') !==
|
||||
DEFAULT_DISPLAY_FIELDS.filter((f) => f.id !== DisplayField.ADDED)
|
||||
.map((f) => f.id)
|
||||
.join(',')) ||
|
||||
filterRulesDiffer(
|
||||
this.unmodifiedSavedView.filter_rules,
|
||||
this.list.filterRules
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue