fix: add safeCreateIcons import to auth.js + export closeHeaderMenu from ui.js
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
/* ObsiGate — Authentication: API helper, AuthManager, login form, AdminPanel */
|
/* ObsiGate — Authentication: API helper, AuthManager, login form, AdminPanel */
|
||||||
import { state } from './state.js';
|
import { state } from './state.js';
|
||||||
|
import { safeCreateIcons } from './utils.js';
|
||||||
|
import { showToast } from './ui.js';
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// API helpers
|
// API helpers
|
||||||
|
|||||||
+1
-1
@@ -192,7 +192,7 @@ export function initHeaderMenu() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function closeHeaderMenu() {
|
export function closeHeaderMenu() {
|
||||||
const menuBtn = document.getElementById("header-menu-btn");
|
const menuBtn = document.getElementById("header-menu-btn");
|
||||||
const menuDropdown = document.getElementById("header-menu-dropdown");
|
const menuDropdown = document.getElementById("header-menu-dropdown");
|
||||||
if (!menuBtn || !menuDropdown) return;
|
if (!menuBtn || !menuDropdown) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user