fix message space on video upload cancel

pull/1148/head
Rigel Kent 2018-09-29 02:42:45 +02:00
parent 8eaa6d62c6
commit 8c2b9756f9
No known key found for this signature in database
GPG Key ID: EA12971B0E438F36
2 changed files with 3 additions and 2 deletions

View File

@ -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?')

View File

@ -93,7 +93,8 @@ export class VideoUpdateComponent extends FormReactive implements OnInit {
}
update () {
if (this.checkForm() === false) {
if (this.checkForm() === false
|| this.isUpdatingVideo === true) {
return
}