v1.1.14: serviceId filter, svcShort displayName, descr, remove duplicate endpoint
This commit is contained in:
+3
-2
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user