diff --git a/site/app.py b/site/app.py index 783244e..f437f27 100644 --- a/site/app.py +++ b/site/app.py @@ -19,7 +19,7 @@ from routes.api_scenario_run import bp_run as api_scenario_run_bp from routes.api_scenario_defs import bp_defs as api_scenario_defs_bp # Версия — меняется при КАЖДОМ изменении кода. Показывается в топбаре UI. -VERSION = "1.2.11" +VERSION = "1.2.12" 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/js/scenario-list.js b/site/static/js/scenario-list.js index b7c924e..b0694de 100644 --- a/site/static/js/scenario-list.js +++ b/site/static/js/scenario-list.js @@ -24,13 +24,10 @@ async function loadScenarios(){ sr.forEach(s=>{ const seed = s.is_seed; html+=`
`; - html+=`
`; + html+=`
`; html+=`${_esc(s.name)}`; - html+=`${s.steps} шагов`; - if(!seed) html+=``; - html+=``; - if(!seed) html+=``; - if(seed) html+=`seed`; + html+=`${s.steps} шаг.`; + if(seed) html+=`seed`; html+=`
`; html+=``; html+=`
`; @@ -75,6 +72,9 @@ async function toggleScenarioSteps(defId) { html += '
'; }); html += ``; + html += ``; + html += ``; + if (!def.is_seed) html += ``; html += ''; el.innerHTML = html; el.style.display = 'block';