fix message space on video upload cancel
This commit is contained in:
parent
8eaa6d62c6
commit
8c2b9756f9
|
@ -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?')
|
||||
|
|
|
@ -93,7 +93,8 @@ export class VideoUpdateComponent extends FormReactive implements OnInit {
|
|||
}
|
||||
|
||||
update () {
|
||||
if (this.checkForm() === false) {
|
||||
if (this.checkForm() === false
|
||||
|| this.isUpdatingVideo === true) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue