Make it close not leave page

This commit is contained in:
shamoon committed 2026-10-20 09:38:29 -07:00
1 parent 0572b54579
commit ea31b6a043
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
},
})