From 23db998f07d674c621972a769df73203b14e093a Mon Sep 17 00:00:00 2001 From: BO41 Date: Sat, 22 Sep 2018 20:11:16 +0200 Subject: remove unused imports --- client/src/app/shared/guards/can-deactivate-guard.service.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'client/src/app/shared/guards/can-deactivate-guard.service.ts') 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 @@ 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 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?') -- cgit v1.2.3