Spaces:
Sleeping
Sleeping
Sync app from GitHub Actions
Browse files- src/ui/app_factory.py +5 -5
src/ui/app_factory.py
CHANGED
|
@@ -2628,7 +2628,7 @@ def create_app() -> gr.Blocks:
|
|
| 2628 |
gr.update(visible=True),
|
| 2629 |
)
|
| 2630 |
|
| 2631 |
-
with gr.
|
| 2632 |
with gr.Group(elem_classes=["bn-admin-panel"]):
|
| 2633 |
gr.HTML(
|
| 2634 |
section_header_html(
|
|
@@ -2788,7 +2788,7 @@ def create_app() -> gr.Blocks:
|
|
| 2788 |
outputs=[projects_table],
|
| 2789 |
)
|
| 2790 |
|
| 2791 |
-
with gr.
|
| 2792 |
with gr.Group(elem_classes=["bn-admin-panel", "bn-admin-token-panel"]):
|
| 2793 |
gr.HTML(
|
| 2794 |
section_header_html(
|
|
@@ -2878,7 +2878,7 @@ def create_app() -> gr.Blocks:
|
|
| 2878 |
gr.update(choices=admin_projects, value=None),
|
| 2879 |
)
|
| 2880 |
|
| 2881 |
-
with gr.
|
| 2882 |
with gr.Group(elem_classes=["bn-admin-panel", "bn-admin-delete-panel"]):
|
| 2883 |
gr.HTML(
|
| 2884 |
section_header_html(
|
|
@@ -2899,7 +2899,7 @@ def create_app() -> gr.Blocks:
|
|
| 2899 |
elem_classes=["bn-admin-action", "bn-admin-action-red", "bn-delete-project-action"],
|
| 2900 |
)
|
| 2901 |
|
| 2902 |
-
with gr.
|
| 2903 |
with gr.Group(elem_classes=["bn-admin-panel", "bn-admin-access-panel"]):
|
| 2904 |
gr.HTML(
|
| 2905 |
section_header_html(
|
|
@@ -3023,7 +3023,7 @@ def create_app() -> gr.Blocks:
|
|
| 3023 |
outputs=[admin_message, admin_username, admin_invite_email, admin_project, admin_role],
|
| 3024 |
)
|
| 3025 |
|
| 3026 |
-
with gr.
|
| 3027 |
with gr.Group(elem_classes=["bn-admin-panel", "bn-admin-pending-panel"]):
|
| 3028 |
gr.HTML(
|
| 3029 |
section_header_html(
|
|
|
|
| 2628 |
gr.update(visible=True),
|
| 2629 |
)
|
| 2630 |
|
| 2631 |
+
with gr.Column(visible=False, elem_classes=["bn-admin-section", "bn-admin-project-section"]) as admin_controls:
|
| 2632 |
with gr.Group(elem_classes=["bn-admin-panel"]):
|
| 2633 |
gr.HTML(
|
| 2634 |
section_header_html(
|
|
|
|
| 2788 |
outputs=[projects_table],
|
| 2789 |
)
|
| 2790 |
|
| 2791 |
+
with gr.Column(visible=False, elem_classes=["bn-admin-section", "bn-admin-token-section"]) as admin_token_controls:
|
| 2792 |
with gr.Group(elem_classes=["bn-admin-panel", "bn-admin-token-panel"]):
|
| 2793 |
gr.HTML(
|
| 2794 |
section_header_html(
|
|
|
|
| 2878 |
gr.update(choices=admin_projects, value=None),
|
| 2879 |
)
|
| 2880 |
|
| 2881 |
+
with gr.Column(visible=False, elem_classes=["bn-admin-section", "bn-admin-delete-section"]) as admin_delete_controls:
|
| 2882 |
with gr.Group(elem_classes=["bn-admin-panel", "bn-admin-delete-panel"]):
|
| 2883 |
gr.HTML(
|
| 2884 |
section_header_html(
|
|
|
|
| 2899 |
elem_classes=["bn-admin-action", "bn-admin-action-red", "bn-delete-project-action"],
|
| 2900 |
)
|
| 2901 |
|
| 2902 |
+
with gr.Column(visible=False, elem_classes=["bn-admin-section", "bn-admin-access-section"]) as admin_users_controls:
|
| 2903 |
with gr.Group(elem_classes=["bn-admin-panel", "bn-admin-access-panel"]):
|
| 2904 |
gr.HTML(
|
| 2905 |
section_header_html(
|
|
|
|
| 3023 |
outputs=[admin_message, admin_username, admin_invite_email, admin_project, admin_role],
|
| 3024 |
)
|
| 3025 |
|
| 3026 |
+
with gr.Column(visible=False, elem_classes=["bn-admin-section", "bn-admin-pending-section"]) as admin_pending_controls:
|
| 3027 |
with gr.Group(elem_classes=["bn-admin-panel", "bn-admin-pending-panel"]):
|
| 3028 |
gr.HTML(
|
| 3029 |
section_header_html(
|