mirror of https://github.com/openspug/spug
fix issue
parent
aba43b8709
commit
916c70a16b
|
@ -30,7 +30,7 @@ class AddSelect extends React.Component {
|
||||||
store.deploy = {
|
store.deploy = {
|
||||||
is_audit: false,
|
is_audit: false,
|
||||||
rst_notify: {mode: '0'},
|
rst_notify: {mode: '0'},
|
||||||
host_ids: [undefined],
|
host_ids: [],
|
||||||
host_actions: [],
|
host_actions: [],
|
||||||
server_actions: []
|
server_actions: []
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,8 +43,8 @@ export default observer(function Ext1Setup1() {
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item required label="目标主机">
|
<Form.Item required label="目标主机">
|
||||||
{info.host_ids.length > 0 && `已选择 ${info.host_ids.length} 台`}
|
{info.host_ids.length > 0 && <span style={{marginRight: 16}}>已选择 {info.host_ids.length} 台</span>}
|
||||||
<Button type="link" onClick={() => store.selectorVisible = true}>选择主机</Button>
|
<Button type="link" style={{padding: 0}} onClick={() => store.selectorVisible = true}>选择主机</Button>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item required label="Git仓库地址">
|
<Form.Item required label="Git仓库地址">
|
||||||
<Input disabled={store.isReadOnly} value={info['git_repo']} onChange={e => info['git_repo'] = e.target.value}
|
<Input disabled={store.isReadOnly} value={info['git_repo']} onChange={e => info['git_repo'] = e.target.value}
|
||||||
|
|
|
@ -44,8 +44,8 @@ export default observer(function Ext2Setup1() {
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item required label="目标主机">
|
<Form.Item required label="目标主机">
|
||||||
{info.host_ids.length > 0 && `已选择 ${info.host_ids.length} 台`}
|
{info.host_ids.length > 0 && <span style={{marginRight: 16}}>已选择 {info.host_ids.length} 台</span>}
|
||||||
<Button type="link" onClick={() => setSelectorVisible(true)}>选择主机</Button>
|
<Button type="link" style={{padding: 0}} onClick={() => setSelectorVisible(true)}>选择主机</Button>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item label="发布模式">
|
<Form.Item label="发布模式">
|
||||||
<Radio.Group
|
<Radio.Group
|
||||||
|
|
Loading…
Reference in New Issue