aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+my-library/my-history/my-history.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+my-library/my-history/my-history.component.ts')
-rw-r--r--client/src/app/+my-library/my-history/my-history.component.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/client/src/app/+my-library/my-history/my-history.component.ts b/client/src/app/+my-library/my-history/my-history.component.ts
index ad83db7ab..fe6e86346 100644
--- a/client/src/app/+my-library/my-history/my-history.component.ts
+++ b/client/src/app/+my-library/my-history/my-history.component.ts
@@ -107,8 +107,8 @@ export class MyHistoryComponent implements OnInit, DisableForReuseHook {
107 107
108 onVideosHistoryChange () { 108 onVideosHistoryChange () {
109 this.userService.updateMyProfile({ videosHistoryEnabled: this.videosHistoryEnabled }) 109 this.userService.updateMyProfile({ videosHistoryEnabled: this.videosHistoryEnabled })
110 .subscribe( 110 .subscribe({
111 () => { 111 next: () => {
112 const message = this.videosHistoryEnabled === true ? 112 const message = this.videosHistoryEnabled === true ?
113 $localize`Videos history is enabled` : 113 $localize`Videos history is enabled` :
114 $localize`Videos history is disabled` 114 $localize`Videos history is disabled`
@@ -118,8 +118,8 @@ export class MyHistoryComponent implements OnInit, DisableForReuseHook {
118 this.authService.refreshUserInformation() 118 this.authService.refreshUserInformation()
119 }, 119 },
120 120
121 err => this.notifier.error(err.message) 121 error: err => this.notifier.error(err.message)
122 ) 122 })
123 } 123 }
124 124
125 async deleteHistory () { 125 async deleteHistory () {
@@ -130,14 +130,14 @@ export class MyHistoryComponent implements OnInit, DisableForReuseHook {
130 if (res !== true) return 130 if (res !== true) return
131 131
132 this.userHistoryService.deleteUserVideosHistory() 132 this.userHistoryService.deleteUserVideosHistory()
133 .subscribe( 133 .subscribe({
134 () => { 134 next: () => {
135 this.notifier.success($localize`Videos history deleted`) 135 this.notifier.success($localize`Videos history deleted`)
136 136
137 this.reloadData() 137 this.reloadData()
138 }, 138 },
139 139
140 err => this.notifier.error(err.message) 140 error: err => this.notifier.error(err.message)
141 ) 141 })
142 } 142 }
143} 143}