/** * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug * Copyright (c) * Released under the MIT License. */ import React from 'react'; import { observer } from 'mobx-react'; import { Form, Select, Button, Icon } from "antd"; import store from './store'; import hostStore from 'pages/host/store'; import styles from './index.module.css'; @observer class Ext2Setup2 extends React.Component { componentDidMount() { if (hostStore.records.length === 0) { hostStore.fetchRecords() } } render() { const info = store.deploy; return (
{info['host_ids'].map((id, index) => ( {info['host_ids'].length > 1 && ( store.delHost(index)}/> )} ))}
) } } export default Ext2Setup2