v1.1.14: serviceId filter, svcShort displayName, descr, remove duplicate endpoint

This commit is contained in:
2026-07-29 09:34:46 +04:00
parent 334e0ac668
commit 735bf4d3d6
5 changed files with 39 additions and 69 deletions
+3 -2
View File
@@ -47,6 +47,7 @@ async function selectService(svcId){
const d=await r.json();
svcInstances=d.instances||[];
currentSvcName=d.svc||'';
currentSvcShort=d.svcShort||'';
// Обновить текст кнопки создания
const btnSpan=document.querySelector('#create-btn-area span');
if(btnSpan) btnSpan.textContent='+ Создать новый инстанс '+(currentSvcName||'сервиса');
@@ -110,8 +111,8 @@ async function startCreate(){
}
function makeCreateDisplayName(){
const suffix = Date.now().toString(36);
return suffix;
const rand = (Math.random() * 46656 | 0).toString(36).padStart(3, '0');
return currentSvcShort ? currentSvcShort+'-'+rand : rand;
}
function runOp(opName,opId){