aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2018-09-29 02:42:45 +0200
committerRigel Kent <sendmemail@rigelk.eu>2018-09-29 02:42:45 +0200
commit8c2b9756f946354c09ff7b6ce5ce7fdae1d8b2b7 (patch)
tree4aeca51b680bad11efcc1b03edcdd8260026432c /client/src/app/videos
parent8eaa6d62c6c5659dae7db16f3718327df572a91c (diff)
downloadPeerTube-8c2b9756f946354c09ff7b6ce5ce7fdae1d8b2b7.tar.gz
PeerTube-8c2b9756f946354c09ff7b6ce5ce7fdae1d8b2b7.tar.zst
PeerTube-8c2b9756f946354c09ff7b6ce5ce7fdae1d8b2b7.zip
fix message space on video upload cancel
Diffstat (limited to 'client/src/app/videos')
-rw-r--r--client/src/app/videos/+video-edit/video-add-components/video-upload.component.ts2
-rw-r--r--client/src/app/videos/+video-edit/video-update.component.ts3
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
83 83
84 if (this.videoUploaded === true) { 84 if (this.videoUploaded === true) {
85 // FIXME: cannot concatenate strings inside i18n service :/ 85 // FIXME: cannot concatenate strings inside i18n service :/
86 text = this.i18n('Your video was uploaded to your account and is private.') + 86 text = this.i18n('Your video was uploaded to your account and is private.') + ' ' +
87 this.i18n('But associated data (tags, description...) will be lost, are you sure you want to leave this page?') 87 this.i18n('But associated data (tags, description...) will be lost, are you sure you want to leave this page?')
88 } else { 88 } else {
89 text = this.i18n('Your video is not uploaded yet, are you sure you want to leave this page?') 89 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 {
93 } 93 }
94 94
95 update () { 95 update () {
96 if (this.checkForm() === false) { 96 if (this.checkForm() === false
97 || this.isUpdatingVideo === true) {
97 return 98 return
98 } 99 }
99 100