Jelajahi Sumber

一键部署按钮分开渲染

xy 7 tahun lalu
induk
melakukan
a73f0b4253
1 mengubah file dengan 7 tambahan dan 4 penghapusan
  1. 7 4
      src/app/common/deploy/tencent/TencentConfig.js

+ 7 - 4
src/app/common/deploy/tencent/TencentConfig.js

@@ -196,10 +196,13 @@ class TencentConfig extends Component {
                                             </FormattedMessage>
                                         </Col>
                                         <Col offset={2} span={6}>
-                                            <Button type='primary'
-                                                    disabled={data.project_by_id.schema_id.schemaState === 'ok' ? '' : 'disabled'}
-                                                    onClick={() => this.deployFC()}><FormattedMessage
-                                                id="deploy"/>!</Button>
+                                            {
+                                                data.project_by_id.schema_id.schemaState === 'ok' ?
+                                                    <Button type='primary' onClick={() => this.deployFC()}><FormattedMessage id="deploy"/>!</Button>
+                                                    :
+                                                    <Button type='primary' disabled><FormattedMessage id="deploy"/>!</Button>
+
+                                            }
                                         </Col>
                                     </Row>
                                 </div>