From 3d58b76632ba77cf00435b2a5e06de3af289e5ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Sun, 26 Jul 2026 14:18:39 +0400 Subject: [PATCH] Fix: show progress card for non-modify operations, v1.0.43 --- site/app.py | 2 +- site/templates/index.html | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/site/app.py b/site/app.py index e2349db..3f14a0c 100644 --- a/site/app.py +++ b/site/app.py @@ -6,7 +6,7 @@ from routes.main import bp as main_bp from routes.api import bp as api_bp from routes.api_test import bp as api_test_bp -VERSION = "1.0.42" +VERSION = "1.0.43" app = Flask(__name__, template_folder="templates", static_folder="static") app.config["NUBES_API_ENDPOINT"] = os.getenv("NUBES_API_ENDPOINT", "https://lk-api-gateway-dev.ngcloud.ru/api/v1/svc") diff --git a/site/templates/index.html b/site/templates/index.html index 63bb285..acb1b67 100644 --- a/site/templates/index.html +++ b/site/templates/index.html @@ -215,7 +215,11 @@ function showParams(opId,opName){ async function executeOp(params){ stopPoll(); + document.getElementById('params-card').style.display='block'; + document.getElementById('params-form').innerHTML=''; const btn=document.getElementById('btn-test'); + btn.style.display='inline-flex'; + btn.textContent='Выполняется...'; btn.disabled=true; document.getElementById('test-status').textContent=' ⏳ выполняется...'; document.getElementById('stages-box').style.display='block'; @@ -243,6 +247,7 @@ async function executeOp(params){ const cls=sd.status==='OK'?'badge-success':'badge'; document.getElementById('test-status').innerHTML=` ${sd.status} ${sd.error||''} ${sd.duration||''}s`; btn.disabled=false; + btn.textContent='Готово'; if(sd.status==='OK'&&selectedOp.opName==='create') await selectService(SVC_ID); } },2000);