aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/+my-library/+my-video-channels/my-video-channels.component.ts11
1 files changed, 8 insertions, 3 deletions
diff --git a/client/src/app/+my-library/+my-video-channels/my-video-channels.component.ts b/client/src/app/+my-library/+my-video-channels/my-video-channels.component.ts
index 4d5dbbc2b..fd63fc22b 100644
--- a/client/src/app/+my-library/+my-video-channels/my-video-channels.component.ts
+++ b/client/src/app/+my-library/+my-video-channels/my-video-channels.component.ts
@@ -4,6 +4,7 @@ import { Subject } from 'rxjs'
4import { Component } from '@angular/core' 4import { Component } from '@angular/core'
5import { AuthService, ComponentPagination, ConfirmService, hasMoreItems, Notifier, ScreenService } from '@app/core' 5import { AuthService, ComponentPagination, ConfirmService, hasMoreItems, Notifier, ScreenService } from '@app/core'
6import { VideoChannel, VideoChannelService } from '@app/shared/shared-main' 6import { VideoChannel, VideoChannelService } from '@app/shared/shared-main'
7import { formatICU } from '@app/helpers'
7 8
8@Component({ 9@Component({
9 templateUrl: './my-video-channels.component.html', 10 templateUrl: './my-video-channels.component.html',
@@ -52,9 +53,13 @@ export class MyVideoChannelsComponent {
52 53
53 async deleteVideoChannel (videoChannel: VideoChannel) { 54 async deleteVideoChannel (videoChannel: VideoChannel) {
54 const res = await this.confirmService.confirmWithExpectedInput( 55 const res = await this.confirmService.confirmWithExpectedInput(
55 $localize`Do you really want to delete ${videoChannel.displayName}? 56 $localize`Do you really want to delete ${videoChannel.displayName}?` +
56It will delete ${videoChannel.videosCount} videos uploaded in this channel, and you will not be able to create another 57 `<br />` +
57channel or account with the same name (${videoChannel.name})!`, 58 formatICU(
59 // eslint-disable-next-line max-len
60 $localize`It will delete {count, plural, =1 {1 video} other {{count} videos}} uploaded in this channel, and you will not be able to create another channel or account with the same name (${videoChannel.name})!`,
61 { count: videoChannel.videosCount }
62 ),
58 63
59 $localize`Please type the name of the video channel (${videoChannel.name}) to confirm`, 64 $localize`Please type the name of the video channel (${videoChannel.name}) to confirm`,
60 65