Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
9d4eff09
Commit
9d4eff09
authored
Jan 03, 2023
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add a button to show all setting pages
parent
2bc86712
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
ui.js
javascript/ui.js
+11
-0
ui.py
modules/ui.py
+2
-0
No files found.
javascript/ui.js
View file @
9d4eff09
...
...
@@ -188,6 +188,17 @@ onUiUpdate(function(){
img2img_textarea
=
gradioApp
().
querySelector
(
"#img2img_prompt > label > textarea"
);
img2img_textarea
?.
addEventListener
(
"input"
,
()
=>
update_token_counter
(
"img2img_token_button"
));
}
show_all_pages
=
gradioApp
().
getElementById
(
'settings_show_all_pages'
)
settings_tabs
=
gradioApp
().
querySelector
(
'#settings div'
)
if
(
show_all_pages
&&
settings_tabs
){
settings_tabs
.
appendChild
(
show_all_pages
)
show_all_pages
.
onclick
=
function
(){
gradioApp
().
querySelectorAll
(
'#settings > div'
).
forEach
(
function
(
elem
){
elem
.
style
.
display
=
"block"
;
})
}
}
})
let
txt2img_textarea
,
img2img_textarea
=
undefined
;
...
...
modules/ui.py
View file @
9d4eff09
...
...
@@ -1536,6 +1536,8 @@ def create_ui():
download_localization
=
gr
.
Button
(
value
=
'Download localization template'
,
elem_id
=
"download_localization"
)
reload_script_bodies
=
gr
.
Button
(
value
=
'Reload custom script bodies (No ui updates, No restart)'
,
variant
=
'secondary'
,
elem_id
=
"settings_reload_script_bodies"
)
gr
.
Button
(
value
=
"Show all pages"
,
elem_id
=
"settings_show_all_pages"
)
request_notifications
.
click
(
fn
=
lambda
:
None
,
inputs
=
[],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment