From 9df52d660feb722404be00a50f3c8a612bec1c15 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 17 Aug 2021 14:42:53 +0200 Subject: Migrate client to eslint --- .../+my-video-channels/my-video-channel-create.component.ts | 4 ++-- .../+my-video-channels/my-video-channel-update.component.ts | 8 ++++++-- .../+my-library/+my-video-channels/my-video-channels.component.ts | 8 ++++---- 3 files changed, 12 insertions(+), 8 deletions(-) (limited to 'client/src/app/+my-library/+my-video-channels') diff --git a/client/src/app/+my-library/+my-video-channels/my-video-channel-create.component.ts b/client/src/app/+my-library/+my-video-channels/my-video-channel-create.component.ts index d983aacd9..fd00720d8 100644 --- a/client/src/app/+my-library/+my-video-channels/my-video-channel-create.component.ts +++ b/client/src/app/+my-library/+my-video-channels/my-video-channel-create.component.ts @@ -31,7 +31,7 @@ export class MyVideoChannelCreateComponent extends MyVideoChannelEdit implements private notifier: Notifier, private router: Router, private videoChannelService: VideoChannelService - ) { + ) { super() } @@ -64,7 +64,7 @@ export class MyVideoChannelCreateComponent extends MyVideoChannelEdit implements this.authService.refreshUserInformation() this.notifier.success($localize`Video channel ${videoChannelCreate.displayName} created.`) - this.router.navigate(['/my-library', 'video-channels']) + this.router.navigate([ '/my-library', 'video-channels' ]) }, error: err => { diff --git a/client/src/app/+my-library/+my-video-channels/my-video-channel-update.component.ts b/client/src/app/+my-library/+my-video-channels/my-video-channel-update.component.ts index e8bfbf9ce..f9521b8b5 100644 --- a/client/src/app/+my-library/+my-video-channels/my-video-channel-update.component.ts +++ b/client/src/app/+my-library/+my-video-channels/my-video-channel-update.component.ts @@ -66,7 +66,9 @@ export class MyVideoChannelUpdateComponent extends MyVideoChannelEdit implements }) }, - error: err => this.error = err.message + error: err => { + this.error = err.message + } }) }) } @@ -96,7 +98,9 @@ export class MyVideoChannelUpdateComponent extends MyVideoChannelEdit implements this.router.navigate([ '/my-library', 'video-channels' ]) }, - error: err => this.error = err.message + error: err => { + this.error = err.message + } }) } 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 8b665fd58..303f783fd 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 @@ -121,16 +121,16 @@ channel with the same name (${videoChannel.name})!`, display: false }, scales: { - xAxes: [{ + xAxes: [ { display: false - }], - yAxes: [{ + } ], + yAxes: [ { display: false, ticks: { min: Math.max(0, this.videoChannelsMinimumDailyViews - (3 * this.videoChannelsMaximumDailyViews / 100)), max: Math.max(1, this.videoChannelsMaximumDailyViews) } - }] + } ] }, layout: { padding: { -- cgit v1.2.3