diff --git a/frontend/js/auth.js b/frontend/js/auth.js index 4be81ee..43e18ed 100644 --- a/frontend/js/auth.js +++ b/frontend/js/auth.js @@ -1,5 +1,7 @@ /* ObsiGate — Authentication: API helper, AuthManager, login form, AdminPanel */ import { state } from './state.js'; +import { safeCreateIcons } from './utils.js'; +import { showToast } from './ui.js'; // --------------------------------------------------------------------------- // API helpers diff --git a/frontend/js/ui.js b/frontend/js/ui.js index 5053b01..da12ff1 100644 --- a/frontend/js/ui.js +++ b/frontend/js/ui.js @@ -192,7 +192,7 @@ export function initHeaderMenu() { }); } -function closeHeaderMenu() { +export function closeHeaderMenu() { const menuBtn = document.getElementById("header-menu-btn"); const menuDropdown = document.getElementById("header-menu-dropdown"); if (!menuBtn || !menuDropdown) return;