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);