diff --git a/ui-ngx/src/app/core/guards/confirm-on-exit.guard.ts b/ui-ngx/src/app/core/guards/confirm-on-exit.guard.ts index f3a72e7aae..e28578fe61 100644 --- a/ui-ngx/src/app/core/guards/confirm-on-exit.guard.ts +++ b/ui-ngx/src/app/core/guards/confirm-on-exit.guard.ts @@ -28,10 +28,12 @@ import { isDefined } from '../utils'; export interface HasConfirmForm { confirmForm(): UntypedFormGroup; + confirmOnExitMessage?: string; } export interface HasDirtyFlag { isDirty: boolean; + confirmOnExitMessage?: string; } @Injectable({ @@ -66,9 +68,10 @@ export class ConfirmOnExitGuard implements CanDeactivate { if (dialogResult) { @@ -85,4 +88,10 @@ export class ConfirmOnExitGuard implements CanDeactivateAre you sure you want to leave this page?", "widget-type-not-found": "Problem loading widget configuration.
Probably associated\n widget type was removed.", "widget-type-load-error": "Widget wasn't loaded due to the following errors:", "remove": "Remove widget",