Feature: option for auto-remove inbox tags on save (#5562)

This commit is contained in:
shamoon 2024-02-01 18:41:10 -08:00 committed by GitHub
parent 9e6aa55230
commit c62d892969
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 196 additions and 35 deletions

View file

@ -630,7 +630,9 @@ export class DocumentDetailComponent
.update(this.document)
.pipe(first())
.subscribe({
next: () => {
next: (docValues) => {
// in case data changed while saving eg removing inbox_tags
this.documentForm.patchValue(docValues)
this.store.next(this.documentForm.value)
this.toastService.showInfo($localize`Document saved successfully.`)
close && this.close()