From 8bd68e1eedbf28d5e2692819ce13de99272ba244 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Thu, 30 Jul 2026 09:08:22 +0400 Subject: [PATCH] v1.1.40: busy blocks instance expand completely --- site/app.py | 2 +- site/static/app.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/site/app.py b/site/app.py index c5c3946..768c1ea 100644 --- a/site/app.py +++ b/site/app.py @@ -18,7 +18,7 @@ from routes.api import bp as api_bp from routes.api_test import bp as api_test_bp # Версия — меняется при КАЖДОМ изменении кода. Показывается в топбаре UI. -VERSION = "1.1.39" +VERSION = "1.1.40" 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") diff --git a/site/static/app.js b/site/static/app.js index d35ccc6..367cd1e 100644 --- a/site/static/app.js +++ b/site/static/app.js @@ -74,7 +74,7 @@ async function toggleInstance(iuid){ document.getElementById('params-area').style.display='none'; const opsEl=document.getElementById('ops-'+iuid); - if(busy){opsEl.innerHTML='⏳ операция выполняется...';opsEl.classList.add('open');return;} + if(busy) return; // операция выполняется — не раскрывать if(opsEl.classList.contains('open')){opsEl.classList.remove('open');return;} document.querySelectorAll('.inst-ops').forEach(e=>e.classList.remove('open'));