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() {