идентификаторы удалений из вкладки Игра
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user