fixed linting errors

pull/2197/head
Anojh 7 years ago
parent ff0ad91a96
commit 24bd114611

@ -74,9 +74,9 @@ export class AppComponent implements OnInit {
}
public roleClass() {
if (this.user.roles.some(r => r === 'Admin')) {
if (this.user.roles.some(r => r === "Admin")) {
return "adminUser";
} else if (this.user.roles.some(r => r === 'PowerUser')) {
} else if (this.user.roles.some(r => r === "PowerUser")) {
return "powerUser";
}
return "user";

@ -9,7 +9,7 @@ export class SettingsMenuComponent {
}
public ngOnInit() {
var element = document.getElementById("settings");
const element = document.getElementById("settings");
if (element != null) {
element.classList.add("active");
}

Loading…
Cancel
Save