mirror of
https://github.com/Nezumi-2711/javascript-training.git
synced 2026-09-22 13:38:43 +00:00
Remove unnecessary code
This commit is contained in:
@@ -18,8 +18,6 @@ export default class HomeView extends CommonView {
|
||||
this.budgetForm = document.getElementById('budgetForm');
|
||||
this.transactionForm = document.getElementById('transactionForm');
|
||||
this.categoryForm = document.getElementById('categoryForm');
|
||||
|
||||
this.homePage = document.URL.includes('/');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -109,8 +107,4 @@ export default class HomeView extends CommonView {
|
||||
tab.classList.remove('active');
|
||||
});
|
||||
}
|
||||
|
||||
isHomePage() {
|
||||
return this.homePage;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,6 @@ export default class LoginView extends CommonLoginRegisterView {
|
||||
super();
|
||||
|
||||
this.parentElement = document.querySelector('.form');
|
||||
this.loginPage = document.URL.includes('/login');
|
||||
this.dialog = document.querySelector('.modal-box');
|
||||
}
|
||||
|
||||
@@ -77,8 +76,4 @@ export default class LoginView extends CommonLoginRegisterView {
|
||||
// Close spinner
|
||||
this.toogleLoaderSpinner();
|
||||
}
|
||||
|
||||
isLoginPage() {
|
||||
return this.loginPage;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,6 @@ export default class RegisterView extends CommonLoginRegisterView {
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
this.registerPage = document.URL.includes('/register');
|
||||
this.dialog = document.querySelector('.modal-box');
|
||||
}
|
||||
|
||||
@@ -101,8 +100,4 @@ export default class RegisterView extends CommonLoginRegisterView {
|
||||
// Close spinner
|
||||
this.toogleLoaderSpinner();
|
||||
}
|
||||
|
||||
isRegisterPage() {
|
||||
return this.registerPage;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user