Skip to content

Commit ca23482

Browse files
authored
Merge pull request #68 from juanahx/main
Remove production environment approval message
2 parents 3bd7b12 + 6f2f541 commit ca23482

1 file changed

Lines changed: 5 additions & 23 deletions

File tree

ui-plugins/muse-manager/src/features/am/AddEnviromentModal.jsx

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,11 @@ export default NiceModal.create(function AddEnvModal({ app }) {
3535
});
3636
addAppEnv(payload)
3737
.then((res) => {
38-
let content = '';
39-
if (values.type === 'production') {
40-
content = (
41-
<span>
42-
The <strong>{values.envName}</strong> environment was successfully created. Please
43-
ask for approval in Muse slack channel: #muse.
44-
</span>
45-
);
46-
} else {
47-
content = (
48-
<span>
49-
The <strong>{values.envName}</strong> environment was successfully created.
50-
</span>
51-
);
52-
}
38+
const content = (
39+
<span>
40+
The <strong>{values.envName}</strong> environment was successfully created.
41+
</span>
42+
);
5343
syncStatus(app.name);
5444
Modal.success({
5545
title: 'Success',
@@ -140,14 +130,6 @@ export default NiceModal.create(function AddEnvModal({ app }) {
140130
errorMode={'inline'}
141131
errorProps={{ title: 'Failed to add env.' }}
142132
/>
143-
{form.getFieldValue('type') === 'production' ? (
144-
<Alert
145-
message="NOTE: after creating the production environment here. Please request the approval in Muse slack channel #muse."
146-
type="warning"
147-
showIcon
148-
style={{ marginBottom: '20px' }}
149-
/>
150-
) : null}
151133
<Form
152134
form={form}
153135
style={{ marginLeft: '-20px', width: '100%' }}

0 commit comments

Comments
 (0)