Skip to content

Commit 49d8481

Browse files
committed
update alert texts for environment modals
1 parent 0ee3f1f commit 49d8481

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,9 @@ const CreateEnvironmentModal: React.FC<CreateEnvironmentModalProps> = ({
192192
</Form.Item>
193193

194194
<Alert
195-
message="License Information"
196-
description="After creating the environment, the system will automatically check the license status. Make sure the API service URL and API key are correctly configured for license validation."
197-
type="info"
195+
message="Configuration Requirements"
196+
description="Ensure that the API Service URL is configured and correct, the API key is valid, and for license verification make sure you have both the license and plugin properly installed."
197+
type="warning"
198198
showIcon
199199
style={{ marginTop: '16px' }}
200200
/>

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState, useEffect } from 'react';
2-
import { Modal, Form, Input, Select, Switch, Button, Tooltip } from 'antd';
2+
import { Modal, Form, Input, Select, Switch, Button, Alert, Tooltip } from 'antd';
33
import { useSelector } from 'react-redux';
44
import { selectMasterEnvironment, selectHasMasterEnvironment } from 'redux/selectors/enterpriseSelectors';
55
import { Environment } from '../types/environment.types';
@@ -191,7 +191,13 @@ const EditEnvironmentModal: React.FC<EditEnvironmentModalProps> = ({
191191
</div>
192192
</Form.Item>
193193

194-
194+
<Alert
195+
message="Configuration Requirements"
196+
description="Ensure that the API Service URL is configured and correct, the API key is valid, and for license verification make sure you have both the license and plugin properly installed."
197+
type="warning"
198+
showIcon
199+
style={{ marginTop: '16px' }}
200+
/>
195201
</Form>
196202
</Modal>
197203
);

0 commit comments

Comments
 (0)