diff options
Diffstat (limited to 'client/src/app/+my-library/my-videos/my-videos.component.ts')
-rw-r--r-- | client/src/app/+my-library/my-videos/my-videos.component.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/client/src/app/+my-library/my-videos/my-videos.component.ts b/client/src/app/+my-library/my-videos/my-videos.component.ts index 57b8bdf7d..1827d6a0b 100644 --- a/client/src/app/+my-library/my-videos/my-videos.component.ts +++ b/client/src/app/+my-library/my-videos/my-videos.component.ts | |||
@@ -5,7 +5,7 @@ import { Component, OnInit, ViewChild } from '@angular/core' | |||
5 | import { ActivatedRoute, Router } from '@angular/router' | 5 | import { ActivatedRoute, Router } from '@angular/router' |
6 | import { AuthService, ComponentPagination, ConfirmService, Notifier, ScreenService, ServerService, User } from '@app/core' | 6 | import { AuthService, ComponentPagination, ConfirmService, Notifier, ScreenService, ServerService, User } from '@app/core' |
7 | import { DisableForReuseHook } from '@app/core/routing/disable-for-reuse-hook' | 7 | import { DisableForReuseHook } from '@app/core/routing/disable-for-reuse-hook' |
8 | import { immutableAssign, prepareIcu } from '@app/helpers' | 8 | import { immutableAssign, formatICU } from '@app/helpers' |
9 | import { AdvancedInputFilter } from '@app/shared/shared-forms' | 9 | import { AdvancedInputFilter } from '@app/shared/shared-forms' |
10 | import { DropdownAction, Video, VideoService } from '@app/shared/shared-main' | 10 | import { DropdownAction, Video, VideoService } from '@app/shared/shared-main' |
11 | import { LiveStreamInformationComponent } from '@app/shared/shared-video-live' | 11 | import { LiveStreamInformationComponent } from '@app/shared/shared-video-live' |
@@ -184,9 +184,9 @@ export class MyVideosComponent implements OnInit, DisableForReuseHook { | |||
184 | .map(([ k, _v ]) => parseInt(k, 10)) | 184 | .map(([ k, _v ]) => parseInt(k, 10)) |
185 | 185 | ||
186 | const res = await this.confirmService.confirm( | 186 | const res = await this.confirmService.confirm( |
187 | prepareIcu($localize`Do you really want to delete {length, plural, =1 {this video} other {{length} videos}}?`)( | 187 | formatICU( |
188 | { length: toDeleteVideosIds.length }, | 188 | $localize`Do you really want to delete {length, plural, =1 {this video} other {{length} videos}}?`, |
189 | $localize`Do you really want to delete ${toDeleteVideosIds.length} videos?` | 189 | { length: toDeleteVideosIds.length } |
190 | ), | 190 | ), |
191 | $localize`Delete` | 191 | $localize`Delete` |
192 | ) | 192 | ) |
@@ -205,9 +205,9 @@ export class MyVideosComponent implements OnInit, DisableForReuseHook { | |||
205 | .subscribe({ | 205 | .subscribe({ |
206 | next: () => { | 206 | next: () => { |
207 | this.notifier.success( | 207 | this.notifier.success( |
208 | prepareIcu($localize`{length, plural, =1 {Video has been deleted} other {{length} videos have been deleted}}`)( | 208 | formatICU( |
209 | { length: toDeleteVideosIds.length }, | 209 | $localize`{length, plural, =1 {Video has been deleted} other {{length} videos have been deleted}}`, |
210 | $localize`${toDeleteVideosIds.length} have been deleted.` | 210 | { length: toDeleteVideosIds.length } |
211 | ) | 211 | ) |
212 | ) | 212 | ) |
213 | 213 | ||