Skip to content

Commit b97f125

Browse files
committed
fix refresh buttons
1 parent 8880f3e commit b97f125

File tree

6 files changed

+43
-12
lines changed

6 files changed

+43
-12
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,13 @@ const AppsTab: React.FC<AppsTabProps> = ({ environment, workspace }) => {
283283
icon={<SyncOutlined spin={refreshing} />}
284284
onClick={handleRefresh}
285285
loading={loading}
286-
type="primary"
287-
ghost
286+
type="default"
287+
style={{
288+
backgroundColor: 'rgba(255, 255, 255, 0.2)',
289+
borderColor: 'rgba(255, 255, 255, 0.4)',
290+
color: 'white',
291+
fontWeight: 500
292+
}}
288293
>
289294
Refresh
290295
</Button>

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,13 @@ const DataSourcesTab: React.FC<DataSourcesTabProps> = ({ environment, workspace
292292
icon={<SyncOutlined spin={refreshing} />}
293293
onClick={handleRefresh}
294294
loading={loading}
295-
type="primary"
296-
ghost
295+
type="default"
296+
style={{
297+
backgroundColor: 'rgba(255, 255, 255, 0.2)',
298+
borderColor: 'rgba(255, 255, 255, 0.4)',
299+
color: 'white',
300+
fontWeight: 500
301+
}}
297302
>
298303
Refresh
299304
</Button>

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,15 @@ const EnvironmentHeader: React.FC<EnvironmentHeaderProps> = ({
7373
<Button
7474
icon={<EditOutlined />}
7575
onClick={onEditClick}
76-
type="primary"
77-
ghost
76+
type="default"
7877
size="large"
78+
style={{
79+
background: 'white',
80+
color: '#1890ff',
81+
borderColor: 'white',
82+
fontWeight: 500,
83+
boxShadow: '0 2px 4px rgba(0,0,0,0.1)'
84+
}}
7985
>
8086
Edit Environment
8187
</Button>

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,13 @@ const QueriesTab: React.FC<QueriesTabProps> = ({ environment, workspace }) => {
291291
icon={<SyncOutlined spin={refreshing} />}
292292
onClick={handleRefresh}
293293
loading={loading}
294-
type="primary"
295-
ghost
294+
type="default"
295+
style={{
296+
backgroundColor: 'rgba(255, 255, 255, 0.2)',
297+
borderColor: 'rgba(255, 255, 255, 0.4)',
298+
color: 'white',
299+
fontWeight: 500
300+
}}
296301
>
297302
Refresh
298303
</Button>

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,13 @@ const UserGroupsTab: React.FC<UserGroupsTabProps> = ({ environment }) => {
234234
icon={<SyncOutlined spin={refreshing} />}
235235
onClick={handleRefresh}
236236
loading={loading}
237-
type="primary"
238-
ghost
237+
type="default"
238+
style={{
239+
backgroundColor: 'rgba(255, 255, 255, 0.2)',
240+
borderColor: 'rgba(255, 255, 255, 0.4)',
241+
color: 'white',
242+
fontWeight: 500
243+
}}
239244
>
240245
Refresh
241246
</Button>

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,13 @@ const WorkspacesTab: React.FC<WorkspacesTabProps> = ({ environment }) => {
224224
icon={<SyncOutlined spin={refreshing} />}
225225
onClick={handleRefresh}
226226
loading={loading}
227-
type="primary"
228-
ghost
227+
type="default"
228+
style={{
229+
backgroundColor: 'rgba(255, 255, 255, 0.2)',
230+
borderColor: 'rgba(255, 255, 255, 0.4)',
231+
color: 'white',
232+
fontWeight: 500
233+
}}
229234
>
230235
Refresh
231236
</Button>

0 commit comments

Comments
 (0)