Cleanup video playlist element miniature code
This commit is contained in:
parent
0ba9696c01
commit
60dd77c692
2 changed files with 2 additions and 5 deletions
|
@ -121,7 +121,7 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy
|
|||
let text = ''
|
||||
|
||||
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.` + ' ' +
|
||||
$localize`But associated data (tags, description...) will be lost, are you sure you want to leave this page?`
|
||||
} else {
|
||||
|
|
|
@ -166,9 +166,6 @@ export class VideoPlaylistElementMiniatureComponent implements OnInit {
|
|||
}
|
||||
}
|
||||
|
||||
// FIXME: why do we have to use setTimeout here?
|
||||
setTimeout(() => {
|
||||
this.cdr.detectChanges()
|
||||
})
|
||||
this.cdr.markForCheck()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue