X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fvideos%2F%2Bvideo-edit%2Fvideo-update.module.ts;h=d60aa699f8ab0e22da4f4896215e9afa5c4b8c01;hb=2de7f588eb7185525cc8687872fed443a24fd27b;hp=4f5d72cecce7fb39ee9828fda6aa84e7a6199c36;hpb=308c427551c3e20cd9172be58636d8c178f5ae70;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/videos/+video-edit/video-update.module.ts b/client/src/app/videos/+video-edit/video-update.module.ts index 4f5d72cec..d60aa699f 100644 --- a/client/src/app/videos/+video-edit/video-update.module.ts +++ b/client/src/app/videos/+video-edit/video-update.module.ts @@ -4,6 +4,7 @@ import { VideoEditModule } from './shared/video-edit.module' import { VideoUpdateRoutingModule } from './video-update-routing.module' import { VideoUpdateComponent } from './video-update.component' import { VideoUpdateResolver } from '@app/videos/+video-edit/video-update.resolver' +import { CanDeactivateGuard } from '@app/shared/guards/can-deactivate-guard.service' @NgModule({ imports: [ @@ -21,7 +22,8 @@ import { VideoUpdateResolver } from '@app/videos/+video-edit/video-update.resolv ], providers: [ - VideoUpdateResolver + VideoUpdateResolver, + CanDeactivateGuard ] }) export class VideoUpdateModule { }