aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-library/my-videos/my-videos.component.ts
diff options
context:
space:
mode:
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.ts16
1 files changed, 8 insertions, 8 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 1e4a4406d..4f9b71cc6 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
@@ -126,14 +126,14 @@ export class MyVideosComponent implements OnInit, DisableForReuseHook {
126 126
127 concat(...observables) 127 concat(...observables)
128 .pipe(toArray()) 128 .pipe(toArray())
129 .subscribe( 129 .subscribe({
130 () => { 130 next: () => {
131 this.notifier.success($localize`${toDeleteVideosIds.length} videos deleted.`) 131 this.notifier.success($localize`${toDeleteVideosIds.length} videos deleted.`)
132 this.selection = {} 132 this.selection = {}
133 }, 133 },
134 134
135 err => this.notifier.error(err.message) 135 error: err => this.notifier.error(err.message)
136 ) 136 })
137 } 137 }
138 138
139 async deleteVideo (video: Video) { 139 async deleteVideo (video: Video) {
@@ -144,14 +144,14 @@ export class MyVideosComponent implements OnInit, DisableForReuseHook {
144 if (res === false) return 144 if (res === false) return
145 145
146 this.videoService.removeVideo(video.id) 146 this.videoService.removeVideo(video.id)
147 .subscribe( 147 .subscribe({
148 () => { 148 next: () => {
149 this.notifier.success($localize`Video ${video.name} deleted.`) 149 this.notifier.success($localize`Video ${video.name} deleted.`)
150 this.removeVideoFromArray(video.id) 150 this.removeVideoFromArray(video.id)
151 }, 151 },
152 152
153 error => this.notifier.error(error.message) 153 error: err => this.notifier.error(err.message)
154 ) 154 })
155 } 155 }
156 156
157 changeOwnership (video: Video) { 157 changeOwnership (video: Video) {