Cleanup video playlist element miniature code
This commit is contained in:
parent
0ba9696c01
commit
60dd77c692
|
@ -121,7 +121,7 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy
|
||||||
let text = ''
|
let text = ''
|
||||||
|
|
||||||
if (this.videoUploaded === true) {
|
if (this.videoUploaded === true) {
|
||||||
// FIXME: cannot concatenate strings using $localize
|
// We can't concatenate strings using $localize
|
||||||
text = $localize`Your video was uploaded to your account and is private.` + ' ' +
|
text = $localize`Your video was uploaded to your account and is private.` + ' ' +
|
||||||
$localize`But associated data (tags, description...) will be lost, are you sure you want to leave this page?`
|
$localize`But associated data (tags, description...) will be lost, are you sure you want to leave this page?`
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -166,9 +166,6 @@ export class VideoPlaylistElementMiniatureComponent implements OnInit {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: why do we have to use setTimeout here?
|
this.cdr.markForCheck()
|
||||||
setTimeout(() => {
|
|
||||||
this.cdr.detectChanges()
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue