fix ConfigEditor bugs
This commit is contained in:
parent
96abf18b41
commit
9d6e57af5c
@ -509,7 +509,8 @@ window.i18ndoc = {
|
||||
"com.alibaba.nacos.page.serviceDetail.update_cluster": "更新集群",
|
||||
"com.alibaba.nacos.page.serviceDetail.update_instance": "编辑实例",
|
||||
"com.alibaba.nacos.page.serviceDetail.whether_online": "是否上线",
|
||||
"serviceDetail": "服务详情"
|
||||
"serviceDetail": "服务详情",
|
||||
"nacos.page.ConfigEditor.submit_failed": "不能为空, 提交失败",
|
||||
},
|
||||
"en-us": {
|
||||
"com.alibaba.nacos.layout.noenv.nacosversion":"1.0",
|
||||
@ -1020,6 +1021,7 @@ window.i18ndoc = {
|
||||
"com.alibaba.nacos.page.serviceDetail.update_cluster": "Update Cluster",
|
||||
"com.alibaba.nacos.page.serviceDetail.update_instance": "Update Instance",
|
||||
"com.alibaba.nacos.page.serviceDetail.whether_online": "Whether Online",
|
||||
"serviceDetail": "Service Details"
|
||||
"serviceDetail": "Service Details",
|
||||
"nacos.page.ConfigEditor.submit_failed": "Cannot be empty, submit failed",
|
||||
}
|
||||
}
|
||||
|
@ -3,7 +3,7 @@ import $ from 'jquery';
|
||||
import DiffEditorDialog from '../../../components/DiffEditorDialog';
|
||||
import SuccessDialog from '../../../components/SuccessDialog';
|
||||
import './index.less';
|
||||
import { Balloon, Button, Dialog, Field, Form, Icon, Input, Loading, Radio, Select, Tab } from '@alifd/next';
|
||||
import { Balloon, Button, Dialog, Field, Form, Icon, Input, Loading, Radio, Select, Tab, Message } from '@alifd/next';
|
||||
const TabPane = Tab.Item;
|
||||
const FormItem = Form.Item;
|
||||
const { Group: RadioGroup } = Radio;
|
||||
@ -386,8 +386,13 @@ class ConfigEditor extends React.Component {
|
||||
content = this.codeValue;
|
||||
}
|
||||
if (!content) {
|
||||
Message.error({
|
||||
content: window.aliwareIntl.get("nacos.page.ConfigEditor.submit_failed"),
|
||||
align: "cc cc"
|
||||
});
|
||||
return;
|
||||
}
|
||||
this.codeValue = content;
|
||||
this.tenant = window.getParams('namespace') || '';
|
||||
this.serverId = window.getParams('serverId') || 'center';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user