mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-16 22:50:10 +03:00
F OpenNebula/one#5422: Fix minor on models
This commit is contained in:
parent
ed3a8b3961
commit
9d5d315ca2
@ -68,8 +68,8 @@ const VmDetail = ({ id }) => {
|
||||
<p>IP: {ips.join(', ') || '--'}</p>
|
||||
<p>Start time: {Helper.timeToString(STIME)}</p>
|
||||
<p>End time: {Helper.timeToString(ETIME)}</p>
|
||||
<p>Host: {`#${hostId} ${hostname}`}</p>
|
||||
<p>Cluster: {`#${clusterId} ${clusterName}`}</p>
|
||||
<p>Host: {hostId ? `#${hostId} ${hostname}` : ''}</p>
|
||||
<p>Cluster: {clusterId ? `#${clusterId} ${clusterName}` : ''}</p>
|
||||
<p>Deploy ID: {DEPLOY_ID}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -3,7 +3,7 @@ import { DATASTORE_STATES, DATASTORE_TYPES } from 'client/constants'
|
||||
|
||||
export const getType = ({ TYPE } = {}) => DATASTORE_TYPES[TYPE]
|
||||
|
||||
export const getState = ({ STATE } = {}) => DATASTORE_STATES[STATE]
|
||||
export const getState = ({ STATE = 0 } = {}) => DATASTORE_STATES[STATE]
|
||||
|
||||
export const getCapacityInfo = ({ TOTAL_MB, USED_MB } = {}) => {
|
||||
const percentOfUsed = +USED_MB * 100 / +TOTAL_MB || 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user