aboutsummaryrefslogtreecommitdiffstats
path: root/javascript
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-10-15 11:22:30 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-10-15 11:22:30 +0000
commitd3463bc59a44d62c2de8b357184c49876d84f654 (patch)
treec89e5a1f2bc06da134a8298ce036892f23650ae9 /javascript
parentf7ca63937ac83d32483285c3af09afaa356d6276 (diff)
downloadstable-diffusion-webui-gfx803-d3463bc59a44d62c2de8b357184c49876d84f654.tar.gz
stable-diffusion-webui-gfx803-d3463bc59a44d62c2de8b357184c49876d84f654.tar.bz2
stable-diffusion-webui-gfx803-d3463bc59a44d62c2de8b357184c49876d84f654.zip
change styling for top right corner UI
made save style button not die when you cancel
Diffstat (limited to 'javascript')
-rw-r--r--javascript/hints.js2
-rw-r--r--javascript/ui.js2
2 files changed, 3 insertions, 1 deletions
diff --git a/javascript/hints.js b/javascript/hints.js
index 8fec907d..b98012f5 100644
--- a/javascript/hints.js
+++ b/javascript/hints.js
@@ -16,6 +16,8 @@ titles = {
"\u{1f3a8}": "Add a random artist to the prompt.",
"\u2199\ufe0f": "Read generation parameters from prompt or last generation if prompt is empty into user interface.",
"\u{1f4c2}": "Open images output directory",
+ "\u{1f4be}": "Save style",
+ "\u{1f4cb}": "Apply selected styles to current prompt",
"Inpaint a part of image": "Draw a mask over an image, and the script will regenerate the masked area with content according to prompt",
"SD upscale": "Upscale image normally, split result into tiles, improve each tile using img2img, merge whole image back",
diff --git a/javascript/ui.js b/javascript/ui.js
index 56f4216f..9e1bed4c 100644
--- a/javascript/ui.js
+++ b/javascript/ui.js
@@ -141,7 +141,7 @@ function submit_img2img(){
function ask_for_style_name(_, prompt_text, negative_prompt_text) {
name_ = prompt('Style name:')
- return name_ === null ? [null, null, null]: [name_, prompt_text, negative_prompt_text]
+ return [name_, prompt_text, negative_prompt_text]
}