disable check port input when use registered port (#10799)

This commit is contained in:
Joey777210 2023-07-17 10:58:59 +08:00 committed by GitHub
parent 556e4ccd58
commit 3374cf4610
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 6 deletions

View File

@ -141,12 +141,15 @@ class EditClusterDialog extends React.Component {
className="in-text"
value={defaultCheckPort}
onChange={defaultCheckPort => this.onChangeCluster({ defaultCheckPort })}
disabled={useIPPort4Check}
/>
</Form.Item>
<Form.Item label={`${useIpPortCheck}`}>
<Switch
checked={useIPPort4Check}
onChange={useIPPort4Check => this.onChangeCluster({ useIPPort4Check })}
onChange={useIPPort4Check => {
this.onChangeCluster({ useIPPort4Check });
}}
/>
</Form.Item>
{type === 'HTTP' && [

View File

@ -35,7 +35,7 @@
<link rel="stylesheet" type="text/css" href="console-ui/public/css/icon.css">
<link rel="stylesheet" type="text/css" href="console-ui/public/css/font-awesome.css">
<!-- 第三方css结束 -->
<link href="./css/main.css?17a33926721c99af1059" rel="stylesheet"></head>
<link href="./css/main.css?16f22c0c56795bc26e9a" rel="stylesheet"></head>
<body>
<div id="root" style="overflow:hidden"></div>
@ -56,6 +56,6 @@
<script src="console-ui/public/js/merge.js"></script>
<script src="console-ui/public/js/loader.js"></script>
<!-- 第三方js结束 -->
<script type="text/javascript" src="./js/main.js?17a33926721c99af1059"></script></body>
<script type="text/javascript" src="./js/main.js?16f22c0c56795bc26e9a"></script></body>
</html>

File diff suppressed because one or more lines are too long