mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-23 07:08:17 +02:00
[dyad] wrote 4 file(s)
This commit is contained in:
1 parent
11dca3824c
commit
52664951c3
3 files changed
+17
-405
No files matched your search
@@ -7,6 +7,7 @@ class AdminService {
|
||||
this.closeAdminBtn = document.getElementById('close-admin-btn');
|
||||
this.addUserBtn = document.getElementById('add-user-btn');
|
||||
this.usersList = document.getElementById('users-list');
|
||||
this.adminBtn = document.getElementById('admin-btn');
|
||||
|
||||
if (this.adminPanel && this.closeAdminBtn && this.addUserBtn && this.usersList) {
|
||||
this.setupEventListeners();
|
||||
@@ -20,6 +21,13 @@ class AdminService {
|
||||
if (this.addUserBtn) {
|
||||
this.addUserBtn.addEventListener('click', () => this.showAddUserForm());
|
||||
}
|
||||
if (this.adminBtn) {
|
||||
this.adminBtn.addEventListener('click', () => {
|
||||
if (this.adminPanel) {
|
||||
this.adminPanel.classList.remove('hidden');
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
async loadUsers() {
|
||||
|
||||
Reference in new issue
Block a user