Add support for saving styles with negative prompts

This commit is contained in:
cryzed
2022-09-11 16:35:12 +02:00
committed by AUTOMATIC1111
parent d97c6f221f
commit 5fbed65236
4 changed files with 70 additions and 48 deletions

View File

@@ -186,11 +186,7 @@ window.addEventListener('paste', e => {
});
});
function ask_for_style_name(style_name, text){
input = prompt('Style name:');
if (input === null) {
return [null, null]
}
return [input, text]
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]
}