Fix: show progress card for non-modify operations, v1.0.43
This commit is contained in:
+1
-1
@@ -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")
|
||||
|
||||
@@ -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=` <span class="badge ${cls}">${sd.status}</span> ${sd.error||''} ${sd.duration||''}s`;
|
||||
btn.disabled=false;
|
||||
btn.textContent='Готово';
|
||||
if(sd.status==='OK'&&selectedOp.opName==='create') await selectService(SVC_ID);
|
||||
}
|
||||
},2000);
|
||||
|
||||
Reference in New Issue
Block a user