v1.1.40: busy blocks instance expand completely
This commit is contained in:
+1
-1
@@ -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='<span style="color:var(--muted);font-size:11px;">⏳ операция выполняется...</span>';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'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user