aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-video-miniature
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-11-15 09:12:15 +0100
committerChocobozzz <me@florianbigard.com>2021-11-15 09:12:15 +0100
commitbc844338931a5efd17f444fc0e4e71b41db6000a (patch)
tree3c59b494d13e84e7121f6a850b17b6ed977ce9d1 /client/src/app/shared/shared-video-miniature
parent527a52ac4295a072927ff46761766a8b181a7603 (diff)
downloadPeerTube-bc844338931a5efd17f444fc0e4e71b41db6000a.tar.gz
PeerTube-bc844338931a5efd17f444fc0e4e71b41db6000a.tar.zst
PeerTube-bc844338931a5efd17f444fc0e4e71b41db6000a.zip
Add more when deleting a video
Diffstat (limited to 'client/src/app/shared/shared-video-miniature')
-rw-r--r--client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts b/client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts
index feac79d4e..790ae2a5e 100644
--- a/client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts
+++ b/client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts
@@ -177,9 +177,9 @@ export class VideoActionsDropdownComponent implements OnChanges {
177 /* Action handlers */ 177 /* Action handlers */
178 178
179 async unblockVideo () { 179 async unblockVideo () {
180 const confirmMessage = $localize`Do you really want to unblock this video? It will be available again in the videos list.` 180 const confirmMessage = $localize`Do you really want to unblock ${this.video.name}? It will be available again in the videos list.`
181 181
182 const res = await this.confirmService.confirm(confirmMessage, $localize`Unblock`) 182 const res = await this.confirmService.confirm(confirmMessage, $localize`Unblock ${this.video.name}`)
183 if (res === false) return 183 if (res === false) return
184 184
185 this.videoBlocklistService.unblockVideo(this.video.id) 185 this.videoBlocklistService.unblockVideo(this.video.id)
@@ -200,12 +200,12 @@ export class VideoActionsDropdownComponent implements OnChanges {
200 async removeVideo () { 200 async removeVideo () {
201 this.modalOpened.emit() 201 this.modalOpened.emit()
202 202
203 let message = $localize`Do you really want to delete this video?` 203 let message = $localize`Do you really want to delete ${this.video.name}?`
204 if (this.video.isLive) { 204 if (this.video.isLive) {
205 message += ' ' + $localize`The live stream will be automatically terminated.` 205 message += ' ' + $localize`The live stream will be automatically terminated.`
206 } 206 }
207 207
208 const res = await this.confirmService.confirm(message, $localize`Delete`) 208 const res = await this.confirmService.confirm(message, $localize`Delete ${this.video.name}`)
209 if (res === false) return 209 if (res === false) return
210 210
211 this.videoService.removeVideo(this.video.id) 211 this.videoService.removeVideo(this.video.id)
@@ -223,7 +223,7 @@ export class VideoActionsDropdownComponent implements OnChanges {
223 this.redundancyService.addVideoRedundancy(this.video) 223 this.redundancyService.addVideoRedundancy(this.video)
224 .subscribe({ 224 .subscribe({
225 next: () => { 225 next: () => {
226 const message = $localize`This video will be duplicated by your instance.` 226 const message = $localize`${this.video.name} will be duplicated by your instance.`
227 this.notifier.success(message) 227 this.notifier.success(message)
228 }, 228 },
229 229