fix(striker-ui): add manage UPS tab

main
Tsu-ba-me 2 years ago committed by digimer
parent 759cd6f58a
commit 567abff9de
  1. 18
      striker-ui/pages/manage-element/index.tsx

@ -8,6 +8,7 @@ import Grid from '../../components/Grid';
import handleAPIError from '../../lib/handleAPIError'; import handleAPIError from '../../lib/handleAPIError';
import Header from '../../components/Header'; import Header from '../../components/Header';
import ManageFencePanel from '../../components/ManageFence'; import ManageFencePanel from '../../components/ManageFence';
import ManageUpsPanel from '../../components/ManageUps';
import { Panel } from '../../components/Panels'; import { Panel } from '../../components/Panels';
import PrepareHostForm from '../../components/PrepareHostForm'; import PrepareHostForm from '../../components/PrepareHostForm';
import PrepareNetworkForm from '../../components/PrepareNetworkForm'; import PrepareNetworkForm from '../../components/PrepareNetworkForm';
@ -130,6 +131,19 @@ const ManageFenceTabContent: FC = () => (
/> />
); );
const ManageUpsTabContent: FC = () => (
<Grid
columns={STEP_CONTENT_GRID_COLUMNS}
layout={{
'manageups-left-column': {},
'manageups-center-column': {
children: <ManageUpsPanel />,
...STEP_CONTENT_GRID_CENTER_COLUMN,
},
}}
/>
);
const ManageElement: FC = () => { const ManageElement: FC = () => {
const { const {
isReady, isReady,
@ -177,6 +191,7 @@ const ManageElement: FC = () => {
<Tab label="Prepare host" value="prepare-host" /> <Tab label="Prepare host" value="prepare-host" />
<Tab label="Prepare network" value="prepare-network" /> <Tab label="Prepare network" value="prepare-network" />
<Tab label="Manage fence devices" value="manage-fence" /> <Tab label="Manage fence devices" value="manage-fence" />
<Tab label="Manage UPSes" value="manage-ups" />
</Tabs> </Tabs>
</Panel> </Panel>
<TabContent changingTabId={pageTabId} tabId="prepare-host"> <TabContent changingTabId={pageTabId} tabId="prepare-host">
@ -188,6 +203,9 @@ const ManageElement: FC = () => {
<TabContent changingTabId={pageTabId} tabId="manage-fence"> <TabContent changingTabId={pageTabId} tabId="manage-fence">
<ManageFenceTabContent /> <ManageFenceTabContent />
</TabContent> </TabContent>
<TabContent changingTabId={pageTabId} tabId="manage-ups">
<ManageUpsTabContent />
</TabContent>
</> </>
); );
}; };

Loading…
Cancel
Save