diff options
author | Chocobozzz <me@florianbigard.com> | 2021-08-17 14:42:53 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-08-18 08:35:06 +0200 |
commit | 9df52d660feb722404be00a50f3c8a612bec1c15 (patch) | |
tree | dde52880fa012874d24c60f64eb596b0a789cc8b /client/src/app/+my-library/my-history | |
parent | adb8809d43648ea0a64d6845bb39aa3bd0e005a6 (diff) | |
download | PeerTube-9df52d660feb722404be00a50f3c8a612bec1c15.tar.gz PeerTube-9df52d660feb722404be00a50f3c8a612bec1c15.tar.zst PeerTube-9df52d660feb722404be00a50f3c8a612bec1c15.zip |
Migrate client to eslint
Diffstat (limited to 'client/src/app/+my-library/my-history')
-rw-r--r-- | client/src/app/+my-library/my-history/my-history.component.ts | 7 |
1 files changed, 3 insertions, 4 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 fe6e86346..a72d22e1c 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 | |||
@@ -1,4 +1,3 @@ | |||
1 | import { Subject } from 'rxjs' | ||
2 | import { tap } from 'rxjs/operators' | 1 | import { tap } from 'rxjs/operators' |
3 | import { Component, ComponentFactoryResolver, OnInit, ViewChild } from '@angular/core' | 2 | import { Component, ComponentFactoryResolver, OnInit, ViewChild } from '@angular/core' |
4 | import { ActivatedRoute, Router } from '@angular/router' | 3 | import { ActivatedRoute, Router } from '@angular/router' |
@@ -109,9 +108,9 @@ export class MyHistoryComponent implements OnInit, DisableForReuseHook { | |||
109 | this.userService.updateMyProfile({ videosHistoryEnabled: this.videosHistoryEnabled }) | 108 | this.userService.updateMyProfile({ videosHistoryEnabled: this.videosHistoryEnabled }) |
110 | .subscribe({ | 109 | .subscribe({ |
111 | next: () => { | 110 | next: () => { |
112 | const message = this.videosHistoryEnabled === true ? | 111 | const message = this.videosHistoryEnabled === true |
113 | $localize`Videos history is enabled` : | 112 | ? $localize`Videos history is enabled` |
114 | $localize`Videos history is disabled` | 113 | : $localize`Videos history is disabled` |
115 | 114 | ||
116 | this.notifier.success(message) | 115 | this.notifier.success(message) |
117 | 116 | ||