Skip to content

Commit

Permalink
rename admin page
Browse files Browse the repository at this point in the history
  • Loading branch information
lone17 committed Apr 8, 2024
1 parent 2e8b474 commit b146eea
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libs/ktem/ktem/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ def ui(self):
setattr(self, f"_index_{index.id}", page)

with gr.Tab(
"Admin",
elem_id="admin-tab",
id="admin-tab",
"Resources",
elem_id="resources-tab",
id="resources-tab",
visible=not self.f_user_management,
) as self._tabs["admin-tab"]:
) as self._tabs["resources-tab"]:
self.admin_page = AdminPage(self)

with gr.Tab(
Expand Down Expand Up @@ -111,7 +111,7 @@ def signed_in_out(user_id):
for k in self._tabs.keys():
if k == "login-tab":
tabs_update.append(gr.update(visible=False))
elif k == "admin-tab":
elif k == "resources-tab":
tabs_update.append(gr.update(visible=is_admin))
else:
tabs_update.append(gr.update(visible=True))
Expand Down

0 comments on commit b146eea

Please sign in to comment.