MCPcopy Create free account
hub / github.com/error311/FileRise / closeAdminPanel

Function closeAdminPanel

public/js/adminPanel.js:9893–9900  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9891}
9892
9893export async function closeAdminPanel() {
9894 if (hasUnsavedChanges()) {
9895 //const ok = await showCustomConfirmModal(t("unsaved_changes_confirm"));
9896 //if (!ok) return;
9897 }
9898 const m = document.getElementById("adminPanelModal");
9899 if (m) m.style.display = "none";
9900}
9901
9902async function fetchAllUserFlags() {
9903 const r = await fetch("/api/profile/getUserPermissions.php", { credentials: "include" });

Callers 1

handleSaveFunction · 0.85

Calls 1

hasUnsavedChangesFunction · 0.85

Tested by

no test coverage detected