()
| 9891 | } |
| 9892 | |
| 9893 | export 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 | |
| 9902 | async function fetchAllUserFlags() { |
| 9903 | const r = await fetch("/api/profile/getUserPermissions.php", { credentials: "include" }); |
no test coverage detected