Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
javascript/ui.js
javascript/ui.js
+11
-0
modules/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