From 2ca0c9ebef41b8e78afeaafa13fb874aa64bb2f3 Mon Sep 17 00:00:00 2001 From: Anojh Date: Sat, 31 Mar 2018 17:34:56 -0700 Subject: [PATCH] Changed let to const to adhere to linting. --- src/Ombi/ClientApp/app/requests/movierequests.component.ts | 4 ++-- src/Ombi/ClientApp/app/requests/tvrequests.component.ts | 2 +- .../ClientApp/app/usermanagement/usermanagement.component.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Ombi/ClientApp/app/requests/movierequests.component.ts b/src/Ombi/ClientApp/app/requests/movierequests.component.ts index de52fd949..0fc5f6651 100644 --- a/src/Ombi/ClientApp/app/requests/movierequests.component.ts +++ b/src/Ombi/ClientApp/app/requests/movierequests.component.ts @@ -178,8 +178,8 @@ export class MovieRequestsComponent implements OnInit { public setOrder(value: string, el: any) { el = el.toElement || el.relatedTarget || el.target || el.srcElement; - let parent = el.parentElement; - let previousFilter = parent.querySelector(".active"); + const parent = el.parentElement; + const previousFilter = parent.querySelector(".active"); if (this.order === value) { this.reverse = !this.reverse; diff --git a/src/Ombi/ClientApp/app/requests/tvrequests.component.ts b/src/Ombi/ClientApp/app/requests/tvrequests.component.ts index 06242b4ac..ad8b4ca50 100644 --- a/src/Ombi/ClientApp/app/requests/tvrequests.component.ts +++ b/src/Ombi/ClientApp/app/requests/tvrequests.component.ts @@ -70,7 +70,7 @@ export class TvRequestsComponent implements OnInit { if (el.nodeName === "BUTTON") { - let isButtonAlreadyActive = el.parentElement.querySelector(".active"); + const isButtonAlreadyActive = el.parentElement.querySelector(".active"); // if a Button already has Class: .active if (isButtonAlreadyActive) { isButtonAlreadyActive.classList.remove("active"); diff --git a/src/Ombi/ClientApp/app/usermanagement/usermanagement.component.ts b/src/Ombi/ClientApp/app/usermanagement/usermanagement.component.ts index ec2673056..486f814ab 100644 --- a/src/Ombi/ClientApp/app/usermanagement/usermanagement.component.ts +++ b/src/Ombi/ClientApp/app/usermanagement/usermanagement.component.ts @@ -100,8 +100,8 @@ export class UserManagementComponent implements OnInit { el = el.parentElement; } - let parent = el.parentElement; - let previousFilter = parent.querySelector(".active"); + const parent = el.parentElement; + const previousFilter = parent.querySelector(".active"); if (this.order === value) { this.reverse = !this.reverse;