v1.1.41: block selectService when busy

This commit is contained in:
2026-07-30 09:10:10 +04:00
parent 8bd68e1eed
commit 272c5c2b3a
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ from routes.api import bp as api_bp
from routes.api_test import bp as api_test_bp from routes.api_test import bp as api_test_bp
# Версия — меняется при КАЖДОМ изменении кода. Показывается в топбаре UI. # Версия — меняется при КАЖДОМ изменении кода. Показывается в топбаре UI.
VERSION = "1.1.40" VERSION = "1.1.41"
app = Flask(__name__, template_folder="templates", static_folder="static") app = Flask(__name__, template_folder="templates", static_folder="static")
app.config["NUBES_API_ENDPOINT"] = os.getenv("NUBES_API_ENDPOINT", "https://lk-api-gateway-test.ngcloud.ru/api/v1/svc") app.config["NUBES_API_ENDPOINT"] = os.getenv("NUBES_API_ENDPOINT", "https://lk-api-gateway-test.ngcloud.ru/api/v1/svc")
+1
View File
@@ -36,6 +36,7 @@ const AUTOTEST_PREFIX='autotest-';
selectService(currentSvcId); selectService(currentSvcId);
async function selectService(svcId){ async function selectService(svcId){
if(busy) return; // операция выполняется — не менять сервис
currentSvcId=svcId; currentSvcId=svcId;
selectedInst=null; selectedOp=null; stopPoll(); selectedInst=null; selectedOp=null; stopPoll();
document.getElementById('params-area').style.display='none'; document.getElementById('params-area').style.display='none';