update main ui

This commit is contained in:
Vladimir Mandic
2023-09-28 14:32:19 -04:00
parent 23593d5442
commit a785f3da2e
12 changed files with 32 additions and 60 deletions
+4 -6
View File
@@ -191,17 +191,15 @@ function setupExtraNetworksForTab(tabname) {
const btnRefresh = gradioApp().getElementById(`${tabname}_extra_refresh`);
const btnScan = gradioApp().getElementById(`${tabname}_extra_scan`);
const btnSave = gradioApp().getElementById(`${tabname}_extra_save`);
const btnApply = gradioApp().getElementById(`${tabname}_extra_apply`);
const btnClose = gradioApp().getElementById(`${tabname}_extra_close`);
txtSearch.classList.add('search');
txtDescription.classList.add('description');
const buttons = document.createElement('span');
buttons.classList.add('buttons');
buttons.appendChild(btnRefresh);
buttons.appendChild(btnScan);
buttons.appendChild(btnSave);
buttons.appendChild(btnApply);
buttons.appendChild(btnClose);
if (btnRefresh) buttons.appendChild(btnRefresh);
if (btnScan) buttons.appendChild(btnScan);
if (btnSave) buttons.appendChild(btnSave);
if (btnClose) buttons.appendChild(btnClose);
tabs.appendChild(buttons);
const div = document.createElement('div');
div.classList.add('second-line');