diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-22 16:05:57 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-10-22 16:05:57 +0200 |
commit | 60dd77c6922fced1945635a16ac7ecf1df43a839 (patch) | |
tree | 084354042abba344d566f1b0247739657a1cc6b1 /client/src | |
parent | 0ba9696c012804670ccdd5256acdaa7ed9484339 (diff) | |
download | PeerTube-60dd77c6922fced1945635a16ac7ecf1df43a839.tar.gz PeerTube-60dd77c6922fced1945635a16ac7ecf1df43a839.tar.zst PeerTube-60dd77c6922fced1945635a16ac7ecf1df43a839.zip |
Cleanup video playlist element miniature code
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts | 2 | ||||
-rw-r--r-- | client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.ts | 5 |
2 files changed, 2 insertions, 5 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 5fc8b21fb..6f72a07c4 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 | |||
@@ -121,7 +121,7 @@ export class VideoUploadComponent extends VideoSend implements OnInit, OnDestroy | |||
121 | let text = '' | 121 | let text = '' |
122 | 122 | ||
123 | if (this.videoUploaded === true) { | 123 | if (this.videoUploaded === true) { |
124 | // FIXME: cannot concatenate strings using $localize | 124 | // We can't concatenate strings using $localize |
125 | text = $localize`Your video was uploaded to your account and is private.` + ' ' + | 125 | text = $localize`Your video was uploaded to your account and is private.` + ' ' + |
126 | $localize`But associated data (tags, description...) will be lost, are you sure you want to leave this page?` | 126 | $localize`But associated data (tags, description...) will be lost, are you sure you want to leave this page?` |
127 | } else { | 127 | } else { |
diff --git a/client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.ts b/client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.ts index 8d1e14f94..ea58d7f76 100644 --- a/client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.ts +++ b/client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.ts | |||
@@ -166,9 +166,6 @@ export class VideoPlaylistElementMiniatureComponent implements OnInit { | |||
166 | } | 166 | } |
167 | } | 167 | } |
168 | 168 | ||
169 | // FIXME: why do we have to use setTimeout here? | 169 | this.cdr.markForCheck() |
170 | setTimeout(() => { | ||
171 | this.cdr.detectChanges() | ||
172 | }) | ||
173 | } | 170 | } |
174 | } | 171 | } |