Compare commits

..
2 Commits
Author SHA1 Message Date
Sarooj bukhariandbraginini 2d55d0736f Add referesh button to the peers table (#286)
Co-authored-by: braginini <bangvalo@gmail.com>
2023-10-12 18:38:59 +02:00
Sarooj bukhari 8febc26f1f fix update distribution groups bug (#284) 2023-10-04 20:07:02 +02:00
2 changed files with 17 additions and 8 deletions

No files matched your search

+1 -1
View File
@@ -109,7 +109,7 @@ export function* saveRoute(
network: routeToSave.network,
network_id: routeToSave.network_id,
peer: routeToSave.peer,
peer_groups: newPeerGroups,
peer_groups: newPeerGroups.length ? newPeerGroups : null,
groups: newGroups,
} as Route,
};
+16 -7
View File
@@ -666,11 +666,11 @@ export const Peers = () => {
<Col
xs={24}
sm={24}
md={11}
lg={11}
xl={11}
xxl={11}
span={11}
md={12}
lg={12}
xl={12}
xxl={12}
span={12}
>
<Space size="middle" style={{ marginRight: "15px" }}>
<Radio.Group
@@ -691,10 +691,10 @@ export const Peers = () => {
className="select-rows-per-page-en"
/>
</Space>
{isAdmin && (
<Select
mode="tags"
style={{ marginRight: "15px" }}
placeholder="Filter by groups"
tagRender={blueTagRender}
// dropdownRender={dropDownRender}
@@ -714,8 +714,17 @@ export const Peers = () => {
))}
</Select>
)}
<Tooltip title="Refersh">
<Button
onClick={refresh}
style={{color: "#1890ff" }}
>
<ReloadOutlined />
</Button>
</Tooltip>
</Col>
<Col xs={24} sm={24} md={5} lg={5} xl={5} xxl={5} span={5}>
<Col xs={24} sm={24} md={4} lg={4} xl={4} xxl={4} span={4}>
<Row justify="end">
<Col>
{!showTutorial && (