From 144d931f0096ab24e73379caca2c702608cb93d2 Mon Sep 17 00:00:00 2001 From: xiaozhu <2395895331@qq.com> Date: Mon, 10 Aug 2026 11:24:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=A6=81=E5=B7=A5=E4=BD=9C=E5=8F=B0?= =?UTF-8?q?=E8=B7=B3=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/components/admin/DashboardPage.tsx | 6 +++++- .../components/admin/ProjectManagementPage.tsx | 18 +++++++++--------- 2 files changed, 14 insertions(+), 10 deletions(-) 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({
-
-
-
- - -
+
+ + +
+
)}