mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
M #~: Minor fix on VM Template card (#2109)
This commit is contained in:
parent
d11d4f8348
commit
9eaf885758
@ -31,6 +31,7 @@ import {
|
||||
timeFromMilliseconds,
|
||||
getUniqueLabels,
|
||||
getColorFromString,
|
||||
stringToBoolean,
|
||||
} from 'client/models/Helper'
|
||||
import { isExternalURL } from 'client/utils'
|
||||
import {
|
||||
@ -69,6 +70,7 @@ const VmTemplateCard = memo(
|
||||
|
||||
const isExternalImage = useMemo(() => isExternalURL(LOGO), [LOGO])
|
||||
const time = useMemo(() => timeFromMilliseconds(+REGTIME), [REGTIME])
|
||||
const isVR = useMemo(() => stringToBoolean(VROUTER), [VROUTER])
|
||||
|
||||
const logoSource = useMemo(() => {
|
||||
if (!LOGO) return `${STATIC_FILES_URL}/${DEFAULT_TEMPLATE_LOGO}`
|
||||
@ -103,7 +105,7 @@ const VmTemplateCard = memo(
|
||||
<span className={classes.labels}>
|
||||
{HYPERVISOR && <StatusChip text={HYPERVISOR} />}
|
||||
{LOCK && <Lock />}
|
||||
{VROUTER && <StatusChip text={'VROUTER'} />}
|
||||
{isVR && <StatusChip text={'VROUTER'} />}
|
||||
<MultipleTags tags={labels} />
|
||||
</span>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user