aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/guards/can-deactivate-guard.service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/shared/guards/can-deactivate-guard.service.ts')
-rw-r--r--client/src/app/shared/guards/can-deactivate-guard.service.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/app/shared/guards/can-deactivate-guard.service.ts b/client/src/app/shared/guards/can-deactivate-guard.service.ts
index 15618f699..c3b5f37f8 100644
--- a/client/src/app/shared/guards/can-deactivate-guard.service.ts
+++ b/client/src/app/shared/guards/can-deactivate-guard.service.ts
@@ -15,7 +15,7 @@ export class CanDeactivateGuard implements CanDeactivate<CanComponentDeactivate>
15 currentRoute: ActivatedRouteSnapshot, 15 currentRoute: ActivatedRouteSnapshot,
16 currentState: RouterStateSnapshot, 16 currentState: RouterStateSnapshot,
17 nextState: RouterStateSnapshot 17 nextState: RouterStateSnapshot
18 ): Observable<boolean> | boolean { 18 ) {
19 const result = component.canDeactivate() 19 const result = component.canDeactivate()
20 const text = result.text || 'All unsaved data will be lost, are you sure you want to leave this page?' 20 const text = result.text || 'All unsaved data will be lost, are you sure you want to leave this page?'
21 21