diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-04-29 14:43:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-29 14:43:07 +0000 |
commit | f685fe725099dd533422760e0693e9c61f1c32ff (patch) | |
tree | 049d07f32194c1eced8ae4436af819fbfe4f5316 /modules/ui_extensions.py | |
parent | 97167a576880e4802de081db71372ddc8c16fd92 (diff) | |
parent | 88c7debb02caa5e9b9a2bd519085f1f9134c4b01 (diff) | |
download | stable-diffusion-webui-gfx803-f685fe725099dd533422760e0693e9c61f1c32ff.tar.gz stable-diffusion-webui-gfx803-f685fe725099dd533422760e0693e9c61f1c32ff.tar.bz2 stable-diffusion-webui-gfx803-f685fe725099dd533422760e0693e9c61f1c32ff.zip |
Merge pull request #9159 from space-nuko/ui-config-tabs
Make selected tab configurable with UI config
Diffstat (limited to 'modules/ui_extensions.py')
-rw-r--r-- | modules/ui_extensions.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/ui_extensions.py b/modules/ui_extensions.py index 79ff2389..99ac8756 100644 --- a/modules/ui_extensions.py +++ b/modules/ui_extensions.py @@ -490,7 +490,7 @@ def create_ui(): with gr.Blocks(analytics_enabled=False) as ui:
with gr.Tabs(elem_id="tabs_extensions") as tabs:
- with gr.TabItem("Installed"):
+ with gr.TabItem("Installed", id="installed"):
with gr.Row(elem_id="extensions_installed_top"):
apply = gr.Button(value="Apply and restart UI", variant="primary")
@@ -523,7 +523,7 @@ def create_ui(): outputs=[extensions_table, info],
)
- with gr.TabItem("Available"):
+ with gr.TabItem("Available", id="available"):
with gr.Row():
refresh_available_extensions_button = gr.Button(value="Load from:", variant="primary")
available_extensions_index = gr.Text(value="https://raw.githubusercontent.com/AUTOMATIC1111/stable-diffusion-webui-extensions/master/index.json", label="Extension index URL").style(container=False)
@@ -570,7 +570,7 @@ def create_ui(): outputs=[available_extensions_table, install_result]
)
- with gr.TabItem("Install from URL"):
+ with gr.TabItem("Install from URL", id="install_from_url"):
install_url = gr.Text(label="URL for extension's git repository")
install_branch = gr.Text(label="Specific branch name", placeholder="Leave empty for default main branch")
install_dirname = gr.Text(label="Local directory name", placeholder="Leave empty for auto")
|