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