styles editor

This commit is contained in:
Vladimir Mandic
2024-03-07 11:57:09 -05:00
parent 9e93a63ee2
commit 4d3851ecfd
6 changed files with 105 additions and 38 deletions
+2 -2
View File
@@ -309,7 +309,7 @@ function quickSaveStyle() {
}
let enDirty = false;
function closeDetailsEN(args) {
function closeDetailsEN(...args) {
// log('closeDetailsEN');
enDirty = true;
const tabname = getENActiveTab();
@@ -317,7 +317,7 @@ function closeDetailsEN(args) {
if (btnClose) setTimeout(() => btnClose.click(), 100);
const btnRefresh = gradioApp().getElementById(`${tabname}_extra_refresh`);
if (btnRefresh && enDirty) setTimeout(() => btnRefresh.click(), 100);
return args;
return [...args];
}
function refeshDetailsEN(args) {