Readded dashboard to manager

This commit is contained in:
Pax1601
2024-01-23 08:01:34 +01:00
parent 05f98b2738
commit 6f7b251094
15 changed files with 355 additions and 146 deletions

View File

@@ -20,7 +20,7 @@ class ManagerPage {
return this.element;
}
show(previousPage) {
show(ignorePreviousPage) {
ejs.renderFile(this.ejsFile, {...this.options, ...this.manager.options}, {}, (err, str) => {
if (!err) {
this.render(str);
@@ -31,7 +31,7 @@ class ManagerPage {
this.element.classList.remove("hide");
this.previousPage = this.manager.activePage;
this.previousPage = ignorePreviousPage ? this.previousPage : this.manager.activePage;
this.manager.activePage = this;
}