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
34fc2152
Commit
34fc2152
authored
Jan 08, 2024
by
Sj-Si
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix linting
parent
67a70ad1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/ui_extra_networks.py
modules/ui_extra_networks.py
+3
-3
No files found.
modules/ui_extra_networks.py
View file @
34fc2152
...
...
@@ -216,7 +216,7 @@ class ExtraNetworksPage:
onclick
=
item
.
get
(
"onclick"
,
None
)
if
onclick
is
None
:
onclick
=
'"'
+
html
.
escape
(
f
"""return cardClicked({quote_js(tabname)}, {item["prompt"]}, {"true" if self.allow_negative_prompt else "false"})"""
)
+
'"'
copy_path_button
=
f
"<div class='copy-path-button card-button' title='Copy path to clipboard' onclick='extraNetworksCopyCardPath(event, {quote_js(item['filename'])})' data-clipboard-text='{quote_js(item['filename'])}'></div>"
metadata_button
=
""
...
...
@@ -523,7 +523,7 @@ def create_ui(interface: gr.Blocks, unrelated_tabs, tabname):
button_sortorder
=
ToolButton
(
switch_values_symbol
,
elem_id
=
tabname
+
"_extra_sortorder"
,
elem_classes
=
[
"sortorder"
]
+
([]
if
shared
.
opts
.
extra_networks_card_order
==
"Ascending"
else
[
"sortReverse"
]),
visible
=
False
,
tooltip
=
"Invert sort order"
)
button_refresh
=
gr
.
Button
(
'Refresh'
,
elem_id
=
tabname
+
"_extra_refresh"
,
visible
=
False
)
checkbox_show_dirs
=
gr
.
Checkbox
(
True
,
label
=
'Show dirs'
,
elem_id
=
tabname
+
"_extra_show_dirs"
,
elem_classes
=
"show-dirs"
,
visible
=
False
)
tab_controls
[
"edit_search"
]
=
edit_search
tab_controls
[
"dropdown_sort"
]
=
dropdown_sort
tab_controls
[
"button_sortorder"
]
=
button_sortorder
...
...
@@ -560,7 +560,7 @@ def create_ui(interface: gr.Blocks, unrelated_tabs, tabname):
)
tab
.
select
(
fn
=
lambda
:
[
gr
.
update
(
visible
=
k
in
visible_controls
)
for
k
in
tab_controls
],
fn
=
lambda
:
[
gr
.
update
(
visible
=
k
in
visible_controls
)
for
k
in
tab_controls
],
_js
=
"function(){ "
+
jscode
+
" }"
,
inputs
=
[],
outputs
=
list
(
tab_controls
.
values
()),
...
...
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