]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/guards/can-deactivate-guard.service.ts
remove unused imports
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / guards / can-deactivate-guard.service.ts
index c038a5c0edae4dd81ead969cd6c361d534575605..e2a79e8c4e9d3a2e9a4e745d180cbf1c30e4874c 100644 (file)
@@ -1,5 +1,5 @@
 import { Injectable } from '@angular/core'
-import { ActivatedRouteSnapshot, CanDeactivate, RouterStateSnapshot } from '@angular/router'
+import { CanDeactivate } from '@angular/router'
 import { Observable } from 'rxjs'
 import { ConfirmService } from '../../core/index'
 import { I18n } from '@ngx-translate/i18n-polyfill'
@@ -15,11 +15,7 @@ export class CanDeactivateGuard implements CanDeactivate<CanComponentDeactivate>
     private i18n: I18n
   ) { }
 
-  canDeactivate (component: CanComponentDeactivate,
-    currentRoute: ActivatedRouteSnapshot,
-    currentState: RouterStateSnapshot,
-    nextState: RouterStateSnapshot
-  ) {
+  canDeactivate (component: CanComponentDeactivate) {
     const result = component.canDeactivate()
     const text = result.text || this.i18n('All unsaved data will be lost, are you sure you want to leave this page?')