идентификаторы удалений из вкладки Игра

This commit is contained in:
2026-08-20 11:26:56 +03:00
parent a28b0fc062
commit 38aa23cebe
3 changed files with 149 additions and 1 deletions

View File

@@ -45,6 +45,7 @@
mappingSqlPreview: null,
mappingSqlDraft: null,
mappingLoadErrors: {},
mappingContextRefreshTimer: null,
countries: null,
players: null,
referees: null,
@@ -3173,6 +3174,16 @@
render();
});
window.addEventListener("hockey:mapping-context-updated", () => {
if (!state.open || !isMappingSection()) return;
if (state.mappingContextRefreshTimer) clearTimeout(state.mappingContextRefreshTimer);
state.mappingContextRefreshTimer = setTimeout(async () => {
state.mappingContextRefreshTimer = null;
try { await loadMappingCatalog(); } catch (_) {}
renderMapping();
}, 80);
});
window.addEventListener("hockey:tournament-selected", () => {
if (!state.open) return;
if (state.section === "khl_site" && !isKhlTournamentSelected()) state.section = "teams";