This is an automated email from the ASF dual-hosted git repository.
dengliming pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu-dashboard.git
The following commit(s) were added to refs/heads/master by this push:
new e395f4bc fixbug/add-model-edit-fail (#239)
e395f4bc is described below
commit e395f4bc9dd7414bcb4fb3d3417c57aa2c775ce7
Author: likeguo <[email protected]>
AuthorDate: Mon Sep 5 17:11:07 2022 +0800
fixbug/add-model-edit-fail (#239)
---
src/routes/System/Dict/AddModal.js | 7 +++----
src/routes/System/Metadata/AddModal.js | 2 +-
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/routes/System/Dict/AddModal.js
b/src/routes/System/Dict/AddModal.js
index 8e64583c..588c28e2 100644
--- a/src/routes/System/Dict/AddModal.js
+++ b/src/routes/System/Dict/AddModal.js
@@ -135,8 +135,7 @@ class AddModal extends Component {
)}
</FormItem>
{/* status */}
- {this.props.isShow?
- (
+ {
<FormItem
{...formItemLayout}
label={getIntlContent("SHENYU.SYSTEM.STATUS")}
@@ -145,10 +144,10 @@ class AddModal extends Component {
initialValue: enabled,
valuePropName: 'checked',
})(
- <Switch />
+ <Switch disabled={!this.props.isShow} />
)}
</FormItem>
- ) : ''}
+ }
</Form>
</Modal>
)
diff --git a/src/routes/System/Metadata/AddModal.js
b/src/routes/System/Metadata/AddModal.js
index b879b758..c61ad9ac 100644
--- a/src/routes/System/Metadata/AddModal.js
+++ b/src/routes/System/Metadata/AddModal.js
@@ -177,7 +177,7 @@ class AddModal extends Component {
initialValue: enabled,
valuePropName: 'checked',
})(
- <Switch disabled="{!this.props.isShow}" />
+ <Switch disabled={!this.props.isShow} />
)}
</FormItem>
)}