|
1 | 1 | import { useTranslation } from 'react-i18next';
|
2 | 2 | import { PushRuleConfigurationStyleWrapper } from './style';
|
3 |
| -import { PageHeader } from '@actiontech/shared'; |
| 3 | +import { EnterpriseFeatureDisplay, PageHeader } from '@actiontech/shared'; |
4 | 4 | import { useRequest } from 'ahooks';
|
5 | 5 | import ReportPushConfigService from '@actiontech/shared/lib/api/sqle/service/ReportPushConfig';
|
6 | 6 | import {
|
7 | 7 | useCurrentProject,
|
8 | 8 | useCurrentUser
|
9 | 9 | } from '@actiontech/shared/lib/global';
|
10 |
| -import { Spin } from 'antd'; |
| 10 | +import { Spin, Typography } from 'antd'; |
11 | 11 | import WorkflowUpdateNotifier from './components/WorkflowUpdateNotifier';
|
12 | 12 | import SqlManagementIssuePush from './components/SqlManagementIssuePush';
|
13 | 13 |
|
@@ -48,13 +48,21 @@ const PushRuleConfiguration: React.FC = () => {
|
48 | 48 | config={workflowUpdateNotifierConfig}
|
49 | 49 | permission={permission}
|
50 | 50 | />
|
51 |
| - {/* #if [ee] */} |
52 |
| - <SqlManagementIssuePush |
53 |
| - refetch={refresh} |
54 |
| - config={sqlManagementIssuePushConfig} |
55 |
| - permission={permission} |
56 |
| - /> |
57 |
| - {/* #endif */} |
| 51 | + <EnterpriseFeatureDisplay |
| 52 | + featureName={t('pushRule.pushRule.sqlManagementIssuePush.label')} |
| 53 | + eeFeatureDescription={ |
| 54 | + <Typography.Paragraph className="paragraph"> |
| 55 | + {t('pushRule.pushRule.sqlManagementIssuePush.CETips')} |
| 56 | + </Typography.Paragraph> |
| 57 | + } |
| 58 | + isConfigPage={true} |
| 59 | + > |
| 60 | + <SqlManagementIssuePush |
| 61 | + refetch={refresh} |
| 62 | + config={sqlManagementIssuePushConfig} |
| 63 | + permission={permission} |
| 64 | + /> |
| 65 | + </EnterpriseFeatureDisplay> |
58 | 66 | </div>
|
59 | 67 | </Spin>
|
60 | 68 | </PushRuleConfigurationStyleWrapper>
|
|
0 commit comments