diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-23 11:15:00 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-05-23 11:27:09 +0200 |
commit | 52798aa5f277492d4dd2482bca9396d2e982fa19 (patch) | |
tree | c3b8057acf3860aacc92743b9d92214ad0364fcb /client/src/app/core/routing/can-deactivate-guard.service.ts | |
parent | f89189907bbdff6c4bc6d3460ed9ef4c49515f17 (diff) | |
download | PeerTube-52798aa5f277492d4dd2482bca9396d2e982fa19.tar.gz PeerTube-52798aa5f277492d4dd2482bca9396d2e982fa19.tar.zst PeerTube-52798aa5f277492d4dd2482bca9396d2e982fa19.zip |
Update angular
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 | ||