diff --git a/miniapp/assets/clients.js b/miniapp/assets/clients.js index 44a3ed6..d6796f8 100644 --- a/miniapp/assets/clients.js +++ b/miniapp/assets/clients.js @@ -564,7 +564,7 @@ const Clients = (function () { async function renderClientHistory(clientKey) { root.innerHTML = ""; - root.appendChild(headerEl("История подборов", "#/clients")); + root.appendChild(headerEl("Карточка клиента", "#/clients")); // Берём из кеша если есть let clients = clientsCache?.clients; @@ -734,27 +734,17 @@ const Clients = (function () { // Детальные списки внизу (свёрнуты) detailsPlaceholder.replaceWith(renderClientDetails(client, myMeasurements)); - // Подбор техники (Proposals) — секция для менеджера - if (typeof Proposals !== "undefined") { - const clientKey = (client.client_tg_id || client.client_name || "").toLowerCase(); - const propWrapper = el(` -
-
- 🛍 Подбор техники - Открыть → -
-
+ // Подбор техники — только ссылка, без инлайн-загрузки всего списка + const clientKeyProp = encodeURIComponent((client.client_tg_id || client.client_name || "").toLowerCase()); + const propWrapper = el(` +
+
+ 🛍 Подбор техники + Открыть →
- `); - proposalPlaceholder.replaceWith(propWrapper); - const propContainer = propWrapper.querySelector("#propInlineContainer"); - Proposals.mountManager(propContainer, clientKey, client.client_tg_id || "") - .catch(() => { - propContainer.innerHTML = `
Не удалось загрузить подборку.
`; - }); - } else { - proposalPlaceholder.remove(); - } +
+ `); + proposalPlaceholder.replaceWith(propWrapper); // (управление перенесено наверх — сразу под шапку) } diff --git a/miniapp/index.html b/miniapp/index.html index 6186d32..94ae64a 100644 --- a/miniapp/index.html +++ b/miniapp/index.html @@ -39,7 +39,7 @@ - +