diff --git a/package.json b/package.json index 9a91f98..c0d4728 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "amnezia-admin", - "version": "1.2.14", + "version": "1.2.15", "private": true, "description": "amnezia_web — базовая панель AmneziaWG (FREE: просмотр и удаление клиентов; полная версия — PRO).", "license": "MIT", diff --git a/public/app.js b/public/app.js index 50524d5..9a92701 100644 --- a/public/app.js +++ b/public/app.js @@ -575,6 +575,7 @@ async function loadProtocols() { try { const data = await api("/api/protocols"); applyEditionPayload(data); + applyUiHiddenFromPayload(data); protoLabel.textContent = `Протокол: ${data.currentLabel || "AmneziaWG"}`; if (profileHintEl) { if (data.singleProfile && typeof data.profilesPersistHint === "string" && data.profilesPersistHint) { diff --git a/server.js b/server.js index f1e1856..6754961 100644 --- a/server.js +++ b/server.js @@ -2169,6 +2169,7 @@ app.get("/api/protocols", requireAuth, (req, res) => { singleProfile: PROFILES.length < 2, profilesPersistHint: hintSingle, edition: editionPayload(), + uiHidden: { ...effectiveUiHidden() }, }); });