mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-21 07:18:13 +00:00
Chorehancement: update to Angular v22, 'zoneless' / 'reactive' (#13114)
This commit is contained in:
1 parent
f244442c65
commit
106b41a15c
213 files changed
+5363
-5842
No files matched your search
@@ -255,7 +255,7 @@ export class DocumentListComponent
|
||||
}
|
||||
|
||||
public getDisplayCustomFieldTitle(field: string) {
|
||||
return this.settingsService.allDisplayFields.find((f) => f.id === field)
|
||||
return this.settingsService.allDisplayFields().find((f) => f.id === field)
|
||||
?.name
|
||||
}
|
||||
|
||||
@@ -449,9 +449,11 @@ export class DocumentListComponent
|
||||
let modal = this.modalService.open(SaveViewConfigDialogComponent, {
|
||||
backdrop: 'static',
|
||||
})
|
||||
modal.componentInstance.defaultName = this.filterEditor.generateFilterName()
|
||||
modal.componentInstance.setDefaultName(
|
||||
this.filterEditor.generateFilterName()
|
||||
)
|
||||
modal.componentInstance.saveClicked.pipe(first()).subscribe((formValue) => {
|
||||
modal.componentInstance.buttonsEnabled = false
|
||||
modal.componentInstance.buttonsEnabled.set(false)
|
||||
let savedView: SavedView = {
|
||||
name: formValue.name,
|
||||
filter_rules: this.list.filterRules,
|
||||
@@ -502,8 +504,8 @@ export class DocumentListComponent
|
||||
if (error.filter_rules) {
|
||||
error.filter_rules = error.filter_rules.map((r) => r.value)
|
||||
}
|
||||
modal.componentInstance.error = error
|
||||
modal.componentInstance.buttonsEnabled = true
|
||||
modal.componentInstance.error.set(error)
|
||||
modal.componentInstance.buttonsEnabled.set(true)
|
||||
},
|
||||
})
|
||||
})
|
||||
@@ -570,6 +572,7 @@ export class DocumentListComponent
|
||||
}
|
||||
|
||||
get notesEnabled(): boolean {
|
||||
this.settingsService.trackChanges()
|
||||
return this.settingsService.get(SETTINGS_KEYS.NOTES_ENABLED)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user