1
0
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:
Sergio Betanzos 2021-06-23 12:14:29 +02:00
parent ed3a8b3961
commit 9d5d315ca2
No known key found for this signature in database
GPG Key ID: E3E704F097737136
2 changed files with 3 additions and 3 deletions

View File

@ -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>

View File

@ -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