diff --git a/ui/media/js/main.js b/ui/media/js/main.js index 8d7f9818..cf366d33 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -288,7 +288,7 @@ function showImages(reqBody, res, outputContainer, livePreview) { imageSeedLabel.innerText = 'Seed: ' + req.seed let buttons = [ - { text: 'Remove', on_click: onRemoveClick, class: 'secondaryButton' }, + { text: 'Remove', on_click: onRemoveClick, class: 'secondaryButton' }, { text: 'Use as Input', on_click: onUseAsInputClick }, { text: 'Download', on_click: onDownloadImageClick }, { text: 'Make Similar Images', on_click: onMakeSimilarClick }, @@ -1308,21 +1308,21 @@ async function getModels() { function createModelOptions(modelField, selectedModel, path="") { return function fn(modelName) { - if (typeof(modelName) == 'string') { + if (typeof(modelName) == 'string') { const modelOption = document.createElement('option') modelOption.value = path + modelName - modelOption.innerHTML = modelName !== '' ? (path != "" ? "   "+modelName : modelName) : 'None' + modelOption.innerHTML = modelName !== '' ? (path != "" ? "  "+modelName : modelName) : 'None' if (modelName === selectedModel) { modelOption.selected = true } modelField.appendChild(modelOption) - } else { - const modelGroup = document.createElement('optgroup') - modelGroup.label = path + modelName[0] + } else { + const modelGroup = document.createElement('optgroup') + modelGroup.label = path + modelName[0] modelField.appendChild(modelGroup) - modelName[1].forEach( createModelOptions(modelField, selectedModel, path + modelName[0] + "/" ) ) - } + modelName[1].forEach( createModelOptions(modelField, selectedModel, path + modelName[0] + "/" ) ) + } } }