diff options
Diffstat (limited to 'opendc-web/opendc-web-ui/src/components')
| -rw-r--r-- | opendc-web/opendc-web-ui/src/components/topologies/sidebar/machine/UnitTabsComponent.js | 4 | ||||
| -rw-r--r-- | opendc-web/opendc-web-ui/src/components/topologies/sidebar/rack/MachineComponent.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/opendc-web/opendc-web-ui/src/components/topologies/sidebar/machine/UnitTabsComponent.js b/opendc-web/opendc-web-ui/src/components/topologies/sidebar/machine/UnitTabsComponent.js index b800e9d4..4032d607 100644 --- a/opendc-web/opendc-web-ui/src/components/topologies/sidebar/machine/UnitTabsComponent.js +++ b/opendc-web/opendc-web-ui/src/components/topologies/sidebar/machine/UnitTabsComponent.js @@ -5,11 +5,11 @@ import UnitAddContainer from './UnitAddContainer' import UnitListContainer from './UnitListContainer' function UnitTabsComponent({ machineId }) { - const [activeTab, setActiveTab] = useState('cpu-units') + const [activeTab, setActiveTab] = useState('cpuModel-units') return ( <Tabs activeKey={activeTab} onSelect={(_, tab) => setActiveTab(tab)}> - <Tab eventKey="cpu-units" title={<TabTitleText>CPU</TabTitleText>}> + <Tab eventKey="cpuModel-units" title={<TabTitleText>CPU</TabTitleText>}> <UnitAddContainer machineId={machineId} unitType="cpus" /> <UnitListContainer machineId={machineId} unitType="cpus" /> </Tab> diff --git a/opendc-web/opendc-web-ui/src/components/topologies/sidebar/rack/MachineComponent.js b/opendc-web/opendc-web-ui/src/components/topologies/sidebar/rack/MachineComponent.js index 18c3db3c..b0a96a9f 100644 --- a/opendc-web/opendc-web-ui/src/components/topologies/sidebar/rack/MachineComponent.js +++ b/opendc-web/opendc-web-ui/src/components/topologies/sidebar/rack/MachineComponent.js @@ -19,7 +19,7 @@ function MachineComponent({ machine, onClick }) { return ( <Flex onClick={() => onClick()}> - {machine.cpus.length > 0 ? <UnitIcon id="cpu" type="CPU" /> : undefined} + {machine.cpus.length > 0 ? <UnitIcon id="cpuModel" type="CPU" /> : undefined} {machine.gpus.length > 0 ? <UnitIcon id="gpu" type="GPU" /> : undefined} {machine.memories.length > 0 ? <UnitIcon id="memory" type="memory" /> : undefined} {machine.storages.length > 0 ? <UnitIcon id="storage" type="storage" /> : undefined} |
