Changed let to const to adhere to linting.

pull/2118/head
Anojh 7 years ago
parent b82c43356f
commit 2ca0c9ebef

@ -178,8 +178,8 @@ export class MovieRequestsComponent implements OnInit {
public setOrder(value: string, el: any) { public setOrder(value: string, el: any) {
el = el.toElement || el.relatedTarget || el.target || el.srcElement; el = el.toElement || el.relatedTarget || el.target || el.srcElement;
let parent = el.parentElement; const parent = el.parentElement;
let previousFilter = parent.querySelector(".active"); const previousFilter = parent.querySelector(".active");
if (this.order === value) { if (this.order === value) {
this.reverse = !this.reverse; this.reverse = !this.reverse;

@ -70,7 +70,7 @@ export class TvRequestsComponent implements OnInit {
if (el.nodeName === "BUTTON") { if (el.nodeName === "BUTTON") {
let isButtonAlreadyActive = el.parentElement.querySelector(".active"); const isButtonAlreadyActive = el.parentElement.querySelector(".active");
// if a Button already has Class: .active // if a Button already has Class: .active
if (isButtonAlreadyActive) { if (isButtonAlreadyActive) {
isButtonAlreadyActive.classList.remove("active"); isButtonAlreadyActive.classList.remove("active");

@ -100,8 +100,8 @@ export class UserManagementComponent implements OnInit {
el = el.parentElement; el = el.parentElement;
} }
let parent = el.parentElement; const parent = el.parentElement;
let previousFilter = parent.querySelector(".active"); const previousFilter = parent.querySelector(".active");
if (this.order === value) { if (this.order === value) {
this.reverse = !this.reverse; this.reverse = !this.reverse;

Loading…
Cancel
Save