From 800473b4e316c8db7ffa418f1adac926d20d4da8 Mon Sep 17 00:00:00 2001 From: Vladislav Ostapov Date: Tue, 12 Nov 2024 13:22:58 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BE=D0=BA=D0=BD=D0=BE=20=D0=BF=D0=BE=D0=B4?= =?UTF-8?q?=D1=82=D0=B2=D0=B5=D1=80=D0=B6=D0=B4=D0=B5=D0=BD=D0=B8=D1=8F=20?= =?UTF-8?q?=D0=BF=D1=80=D0=B8=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F=20?= =?UTF-8?q?=D0=BD=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B5=D0=BA=20BUC=20=D0=B8?= =?UTF-8?q?=20LNB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/main.html | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/static/main.html b/static/main.html index 57691c9..3c19671 100644 --- a/static/main.html +++ b/static/main.html @@ -859,8 +859,6 @@ }, settingsSubmitBucLnb() { - this.submitStatus.bucLnb = true - // TODO сделать всплывающее окно с подтверждением того, что настройки действительно нужно применить let query = { "buc.refClk10M": this.param.buc.refClk10M, "buc.powering": parseInt(this.param.buc.powering), @@ -869,16 +867,19 @@ "serviceSettings.refClk10M": this.param.serviceSettings.refClk10M, "serviceSettings.autoStart": this.param.serviceSettings.autoStart } - fetch('/api/set/bucLnb', { - method: 'POST', - headers: { - 'Content-Type': 'application/json' - }, - body: JSON.stringify(query) - }).then(async (resp) => { - this.submitStatus.bucLnb = false - this.updateBucLnbSettings(await resp.json()) - }) + if (confirm('Вы уверены, что хотите сохранить настройки BUC и LNB?')) { + this.submitStatus.bucLnb = true + fetch('/api/set/bucLnb', { + method: 'POST', + headers: { + 'Content-Type': 'application/json' + }, + body: JSON.stringify(query) + }).then(async (resp) => { + this.submitStatus.bucLnb = false + this.updateBucLnbSettings(await resp.json()) + }) + } }, settingsSubmitQoS() {