diff --git a/web/templates/base.html b/web/templates/base.html index 07729d5..9946ae2 100644 --- a/web/templates/base.html +++ b/web/templates/base.html @@ -285,6 +285,14 @@ showToast(successMessage, 'success'); // Update last sync time - removed since dropdown is gone // loadLastSyncTime(); + + // Dispatch custom event for pages to react to sync completion + window.dispatchEvent(new CustomEvent('sync-completed', { + detail: { + endpoint: endpoint, + data: data + } + })); } else if (resp.status === 423) { const reason = data.reason_text || data.error || 'Синхронизация заблокирована.'; showToast(reason, 'error'); diff --git a/web/templates/configs.html b/web/templates/configs.html index afb80e8..fe052cf 100644 --- a/web/templates/configs.html +++ b/web/templates/configs.html @@ -4,13 +4,10 @@