diff options
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.ts | 3 |
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 @@ | |||
1 | import { Observable } from 'rxjs' | 1 | import { Observable } from 'rxjs' |
2 | import { Injectable } from '@angular/core' | 2 | import { Injectable } from '@angular/core' |
3 | import { CanDeactivate } from '@angular/router' | ||
4 | import { ConfirmService } from '@app/core/confirm' | 3 | import { ConfirmService } from '@app/core/confirm' |
5 | 4 | ||
6 | export type CanComponentDeactivateResult = { text?: string, canDeactivate: Observable<boolean> | boolean } | 5 | export type CanComponentDeactivateResult = { text?: string, canDeactivate: Observable<boolean> | boolean } |
@@ -10,7 +9,7 @@ export interface CanComponentDeactivate { | |||
10 | } | 9 | } |
11 | 10 | ||
12 | @Injectable() | 11 | @Injectable() |
13 | export class CanDeactivateGuard implements CanDeactivate<CanComponentDeactivate> { | 12 | export class CanDeactivateGuard { |
14 | 13 | ||
15 | constructor (private confirmService: ConfirmService) { } | 14 | constructor (private confirmService: ConfirmService) { } |
16 | 15 | ||