v1.1.35: close stale ops panels when busy resets

This commit is contained in:
2026-07-29 15:07:25 +04:00
parent 81c27fb270
commit b1ec156fc8
2 changed files with 3 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
# Версия — меняется при КАЖДОМ изменении кода. Показывается в топбаре UI.
VERSION = "1.1.34"
VERSION = "1.1.35"
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")
+2
View File
@@ -284,6 +284,8 @@ function validateJson(el,quiet){
function setFinishedState(statusText, statusClass, statusError, statusDuration, instanceName){
busy=false;
// Сбросить все «⏳ операция выполняется...» — при следующем клике перерендерятся
document.querySelectorAll('.inst-ops.open').forEach(e=>e.classList.remove('open'));
const btn=document.getElementById('btn-test');
btn.disabled=false;
btn.textContent='Готово';