Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4b9f37d

Browse files
committed
fix refresh button for the environment listing
1 parent f3a36d8 commit 4b9f37d

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

‎client/packages/lowcoder/src/pages/setting/environments/EnvironmentsList.tsx

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useState } from "react";
22
import { Typography, Alert, Input, Button, Space, Empty, Card, Spin, Row, Col, Tooltip, Badge } from "antd";
3-
import { SearchOutlined, ReloadOutlined, CloudServerOutlined} from "@ant-design/icons";
3+
import { SearchOutlined, CloudServerOutlined, SyncOutlined} from "@ant-design/icons";
44
import { useHistory } from "react-router-dom";
55
import { useEnvironmentContext } from "./context/EnvironmentContext";
66
import { Environment } from "./types/environment.types";
@@ -110,16 +110,20 @@ const EnvironmentsList: React.FC = () => {
110110
</Col>
111111
<Col xs={24} sm={8} style={{ textAlign: 'right' }}>
112112
<Space size="middle">
113-
<Button
114-
icon={<ReloadOutlined spin={isRefreshing} />}
115-
onClick={handleRefresh}
116-
type="primary"
117-
ghost
118-
loading={isLoading && !isRefreshing}
119-
size="large"
120-
>
121-
Refresh
122-
</Button>
113+
<Button
114+
icon={<SyncOutlined spin={isRefreshing} />}
115+
onClick={handleRefresh}
116+
loading={isLoading}
117+
type="default"
118+
style={{
119+
backgroundColor: 'rgba(255, 255, 255, 0.2)',
120+
borderColor: 'rgba(255, 255, 255, 0.4)',
121+
color: 'white',
122+
fontWeight: 500
123+
}}
124+
>
125+
Refresh
126+
</Button>
123127
</Space>
124128
</Col>
125129
</Row>

‎client/packages/lowcoder/src/pages/setting/environments/components/EditEnvironmentModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const EditEnvironmentModal: React.FC<EditEnvironmentModalProps> = ({
6161
title="Edit Environment"
6262
open={visible}
6363
onCancel={onClose}
64-
maskClosable={false}
64+
maskClosable={true}
6565
destroyOnClose={true}
6666
footer={[
6767
<Button key="back" onClick={onClose}>

0 commit comments

Comments
 (0)