xy 7 жил өмнө
parent
commit
9267809769

+ 2 - 3
src/app/common/deploy/tencent/TencentConfig.js

@@ -97,7 +97,6 @@ class TencentConfig extends Component {
                             deploy = data.project_by_id.deploy_id;
                             cloudID = data.project_by_id.cloud_id.id;
                         }
-                        console.log('object',data);
                         let defaultName = data.project_by_id.projectName;
                         return (
                             <div>
@@ -181,9 +180,9 @@ class TencentConfig extends Component {
                                             </FormattedMessage>
                                         </Col>
                                         <Col offset={2} span={6}>
-                                            <Button type='primary' disabled={this.state.couldDeploy? '': 'disabled'} onClick={()=>this.deployFC()}><FormattedMessage id="deploy"/>!</Button>
+                                            <Button type='primary' disabled={data.project_by_id.schema_id.schemaState === 'ok'? '': 'disabled'} onClick={()=>this.deployFC()}><FormattedMessage id="deploy"/>!</Button>
                                             {
-                                                this.state.couldDeploy?
+                                                data.project_by_id.schema_id.schemaState === 'ok'?
                                                     ''
                                                     :
                                                     <div>