You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by li...@apache.org on 2023/03/07 03:09:28 UTC
[incubator-devlake] branch main updated: feat(config-ui): add column status for bp list (#4593)
This is an automated email from the ASF dual-hosted git repository.
likyh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 6c3501884 feat(config-ui): add column status for bp list (#4593)
6c3501884 is described below
commit 6c350188426798cb578d894cff7f25c504e47174
Author: 青湛 <0x...@gmail.com>
AuthorDate: Tue Mar 7 11:09:22 2023 +0800
feat(config-ui): add column status for bp list (#4593)
---
config-ui/src/pages/blueprint/home/index.tsx | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/config-ui/src/pages/blueprint/home/index.tsx b/config-ui/src/pages/blueprint/home/index.tsx
index 87373752e..c70d1c4dc 100644
--- a/config-ui/src/pages/blueprint/home/index.tsx
+++ b/config-ui/src/pages/blueprint/home/index.tsx
@@ -18,7 +18,7 @@
import React, { useMemo } from 'react';
import { Link, useHistory } from 'react-router-dom';
-import { ButtonGroup, Button, Intent } from '@blueprintjs/core';
+import { ButtonGroup, Button, Tag, Intent } from '@blueprintjs/core';
import { PageLoading, PageHeader, Table, ColumnType, IconButton, TextTooltip } from '@/components';
import { getCron, getCronOptions } from '@/config';
@@ -91,6 +91,18 @@ export const BlueprintHomePage = () => {
val
),
},
+ {
+ title: 'Status',
+ dataIndex: 'enable',
+ key: 'enable',
+ align: 'center',
+ width: 100,
+ render: (val) => (
+ <Tag minimal intent={val ? Intent.SUCCESS : Intent.DANGER}>
+ {val ? 'Enabled' : 'Disabled'}
+ </Tag>
+ ),
+ },
{
title: '',
dataIndex: 'id',