diff options
author | BO41 <lukasw41@gmail.com> | 2018-09-22 20:11:16 +0200 |
---|---|---|
committer | BO41 <lukasw41@gmail.com> | 2018-09-22 20:11:16 +0200 |
commit | 23db998f07d674c621972a769df73203b14e093a (patch) | |
tree | 6ecb88dc98bdbe69e113e4841d05aec34d6d0491 /client/src/app/shared/guards | |
parent | 9fe4406794aaa4503d090ca4bfe6872b4e556178 (diff) | |
download | PeerTube-23db998f07d674c621972a769df73203b14e093a.tar.gz PeerTube-23db998f07d674c621972a769df73203b14e093a.tar.zst PeerTube-23db998f07d674c621972a769df73203b14e093a.zip |
remove unused imports
Diffstat (limited to 'client/src/app/shared/guards')
-rw-r--r-- | client/src/app/shared/guards/can-deactivate-guard.service.ts | 8 |
1 files changed, 2 insertions, 6 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 c038a5c0e..e2a79e8c4 100644 --- a/client/src/app/shared/guards/can-deactivate-guard.service.ts +++ b/client/src/app/shared/guards/can-deactivate-guard.service.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | import { Injectable } from '@angular/core' | 1 | import { Injectable } from '@angular/core' |
2 | import { ActivatedRouteSnapshot, CanDeactivate, RouterStateSnapshot } from '@angular/router' | 2 | import { CanDeactivate } from '@angular/router' |
3 | import { Observable } from 'rxjs' | 3 | import { Observable } from 'rxjs' |
4 | import { ConfirmService } from '../../core/index' | 4 | import { ConfirmService } from '../../core/index' |
5 | import { I18n } from '@ngx-translate/i18n-polyfill' | 5 | import { I18n } from '@ngx-translate/i18n-polyfill' |
@@ -15,11 +15,7 @@ export class CanDeactivateGuard implements CanDeactivate<CanComponentDeactivate> | |||
15 | private i18n: I18n | 15 | private i18n: I18n |
16 | ) { } | 16 | ) { } |
17 | 17 | ||
18 | canDeactivate (component: CanComponentDeactivate, | 18 | canDeactivate (component: CanComponentDeactivate) { |
19 | currentRoute: ActivatedRouteSnapshot, | ||
20 | currentState: RouterStateSnapshot, | ||
21 | nextState: RouterStateSnapshot | ||
22 | ) { | ||
23 | const result = component.canDeactivate() | 19 | const result = component.canDeactivate() |
24 | const text = result.text || this.i18n('All unsaved data will be lost, are you sure you want to leave this page?') | 20 | const text = result.text || this.i18n('All unsaved data will be lost, are you sure you want to leave this page?') |
25 | 21 | ||