mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-07 07:19:22 +00:00
Make it close not leave page
This commit is contained in:
2 files changed
+9
-3
No files matched your search
@@ -90,7 +90,9 @@ export class OcrTemplatesComponent
|
||||
const editor: OcrTemplateEditorComponent = modal.componentInstance
|
||||
if (editor.saving()) return false
|
||||
return editor.isDirty
|
||||
? firstValueFrom(this.dirtyFormGuard.confirmChanges())
|
||||
? firstValueFrom(
|
||||
this.dirtyFormGuard.confirmChanges(undefined, $localize`Close`)
|
||||
)
|
||||
: true
|
||||
},
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user