diff --git a/frontend/app/components/admin/DashboardPage.tsx b/frontend/app/components/admin/DashboardPage.tsx index ea6d16a..3c0a960 100644 --- a/frontend/app/components/admin/DashboardPage.tsx +++ b/frontend/app/components/admin/DashboardPage.tsx @@ -14,6 +14,8 @@ export function DashboardPage({ onNavigate: (page: "scripts" | "schedules" | "system") => void; }) { const { user, currentWorkspace } = useAuth(); + const isSystemAdmin = user?.is_system_admin ?? false; + return (
@@ -36,7 +38,9 @@ export function DashboardPage({
- + {isSystemAdmin && ( + + )}
diff --git a/frontend/app/components/admin/ProjectManagementPage.tsx b/frontend/app/components/admin/ProjectManagementPage.tsx index 04cf2be..ccbb8e5 100644 --- a/frontend/app/components/admin/ProjectManagementPage.tsx +++ b/frontend/app/components/admin/ProjectManagementPage.tsx @@ -391,8 +391,8 @@ export function ProjectManagementPage({
-
-
-
- - -
+
+ + +
+
)}