refactor en folder handling

This commit is contained in:
Vladimir Mandic
2023-09-21 11:58:24 -04:00
parent b00c323c31
commit 36324361bd
24 changed files with 135 additions and 171 deletions
+1 -1
View File
@@ -308,7 +308,7 @@ function extraNetworksSearchButton(event) {
const tabname = getENActiveTab();
const searchTextarea = gradioApp().querySelector(`#${tabname}_extra_tabs > div > div > textarea`);
const button = event.target;
const text = button.classList.contains('search-all') ? '' : `/${button.textContent.trim()}/`;
const text = button.classList.contains('search-all') ? '' : `${button.textContent.trim()}/`;
searchTextarea.value = text;
updateInput(searchTextarea);
}