File tree Expand file tree Collapse file tree
ui-plugins/muse-manager/src/features/am Expand file tree Collapse file tree Original file line number Diff line number Diff 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%' } }
You can’t perform that action at this time.
0 commit comments