From 8c2b9756f946354c09ff7b6ce5ce7fdae1d8b2b7 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Sat, 29 Sep 2018 02:42:45 +0200 Subject: [PATCH] fix message space on video upload cancel --- .../+video-edit/video-add-components/video-upload.component.ts | 2 +- client/src/app/videos/+video-edit/video-update.component.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts b/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts index c1920b1f0..584441817 100644 --- a/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts +++ b/client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts @@ -83,7 +83,7 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy if (this.videoUploaded === true) { // FIXME: cannot concatenate strings inside i18n service :/ - text = this.i18n('Your video was uploaded to your account and is private.') + + text = this.i18n('Your video was uploaded to your account and is private.') + ' ' + this.i18n('But associated data (tags, description...) will be lost, are you sure you want to leave this page?') } else { text = this.i18n('Your video is not uploaded yet, are you sure you want to leave this page?') diff --git a/client/src/app/videos/+video-edit/video-update.component.ts b/client/src/app/videos/+video-edit/video-update.component.ts index 856e61530..3a0f3a39a 100644 --- a/client/src/app/videos/+video-edit/video-update.component.ts +++ b/client/src/app/videos/+video-edit/video-update.component.ts @@ -93,7 +93,8 @@ export class VideoUpdateComponent extends FormReactive implements OnInit { } update () { - if (this.checkForm() === false) { + if (this.checkForm() === false + || this.isUpdatingVideo === true) { return } -- 2.41.0