aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/core/routing/can-deactivate-guard.service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/core/routing/can-deactivate-guard.service.ts')
-rw-r--r--client/src/app/core/routing/can-deactivate-guard.service.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/client/src/app/core/routing/can-deactivate-guard.service.ts b/client/src/app/core/routing/can-deactivate-guard.service.ts
index 8fce495e9..638e8e699 100644
--- a/client/src/app/core/routing/can-deactivate-guard.service.ts
+++ b/client/src/app/core/routing/can-deactivate-guard.service.ts
@@ -1,6 +1,5 @@
1import { Observable } from 'rxjs' 1import { Observable } from 'rxjs'
2import { Injectable } from '@angular/core' 2import { Injectable } from '@angular/core'
3import { CanDeactivate } from '@angular/router'
4import { ConfirmService } from '@app/core/confirm' 3import { ConfirmService } from '@app/core/confirm'
5 4
6export type CanComponentDeactivateResult = { text?: string, canDeactivate: Observable<boolean> | boolean } 5export type CanComponentDeactivateResult = { text?: string, canDeactivate: Observable<boolean> | boolean }
@@ -10,7 +9,7 @@ export interface CanComponentDeactivate {
10} 9}
11 10
12@Injectable() 11@Injectable()
13export class CanDeactivateGuard implements CanDeactivate<CanComponentDeactivate> { 12export class CanDeactivateGuard {
14 13
15 constructor (private confirmService: ConfirmService) { } 14 constructor (private confirmService: ConfirmService) { }
16 15