Skip to content

Commit a9fbce8

Browse files
committed
remove button from user-groups
1 parent ce9b5ba commit a9fbce8

File tree

2 files changed

+1
-32
lines changed

2 files changed

+1
-32
lines changed

client/packages/lowcoder/src/pages/setting/environments/EnvironmentDetail.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,7 @@ const EnvironmentDetail: React.FC = () => {
7272
refreshManagedWorkspaces,
7373
} = useManagedWorkspaces(environment);
7474

75-
const {
76-
userGroups,
77-
loading: userGroupsLoading,
78-
error: userGroupsError,
79-
refresh: refreshUserGroups,
80-
userGroupStats,
81-
} = useEnvironmentUserGroups(environment);
75+
8276

8377
// Use the custom hook to handle data fetching and state management
8478
// Use the custom hook to handle data fetching and state management

client/packages/lowcoder/src/pages/setting/environments/components/UserGroupsTab.tsx

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const UserGroupsTab: React.FC<UserGroupsTabProps> = ({ environment }) => {
1616
userGroups,
1717
loading: userGroupsLoading,
1818
error: userGroupsError,
19-
refresh: refreshUserGroups,
2019
userGroupStats,
2120
} = useEnvironmentUserGroups(environment);
2221

@@ -32,14 +31,6 @@ const UserGroupsTab: React.FC<UserGroupsTabProps> = ({ environment }) => {
3231
}}
3332
>
3433
<Title level={5}>User Groups in this Environment</Title>
35-
<Button
36-
icon={<SyncOutlined />}
37-
onClick={refreshUserGroups}
38-
size="small"
39-
loading={userGroupsLoading}
40-
>
41-
Refresh User Groups
42-
</Button>
4334
</div>
4435

4536
{/* User Group Statistics */}
@@ -77,22 +68,6 @@ const UserGroupsTab: React.FC<UserGroupsTabProps> = ({ environment }) => {
7768
type="error"
7869
showIcon
7970
style={{ marginBottom: "16px" }}
80-
action={
81-
userGroupsError.includes("No API key configured") ||
82-
userGroupsError.includes("No API service URL configured") ? (
83-
<Button size="small" type="primary" disabled>
84-
Configuration Required
85-
</Button>
86-
) : (
87-
<Button
88-
size="small"
89-
type="primary"
90-
onClick={refreshUserGroups}
91-
>
92-
Try Again
93-
</Button>
94-
)
95-
}
9671
/>
9772
)}
9873

0 commit comments

Comments
 (0)