mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
M #-: Change registration time for version in marketplace app (#2941)
Signed-off-by: David Carracedo <dcarracedo@opennebula.io> (cherry picked from commit e774e41c6daf6b686d2ed7e54d7f39cba4f3c675)
This commit is contained in:
parent
97cfa76290
commit
75e3561075
@ -21,17 +21,12 @@ import { Typography } from '@mui/material'
|
||||
|
||||
import { useViews } from 'client/features/Auth'
|
||||
import MultipleTags from 'client/components/MultipleTags'
|
||||
import Timer from 'client/components/Timer'
|
||||
import { StatusCircle, StatusChip } from 'client/components/Status'
|
||||
import { Tr } from 'client/components/HOC'
|
||||
import { rowStyles } from 'client/components/Tables/styles'
|
||||
|
||||
import { getState, getType } from 'client/models/MarketplaceApp'
|
||||
import {
|
||||
timeFromMilliseconds,
|
||||
getUniqueLabels,
|
||||
getColorFromString,
|
||||
} from 'client/models/Helper'
|
||||
import { getUniqueLabels, getColorFromString } from 'client/models/Helper'
|
||||
import { prettyBytes } from 'client/utils'
|
||||
import {
|
||||
T,
|
||||
@ -63,7 +58,7 @@ const MarketplaceAppCard = memo(
|
||||
UNAME,
|
||||
GNAME,
|
||||
LOCK,
|
||||
REGTIME,
|
||||
VERSION,
|
||||
MARKETPLACE,
|
||||
ZONE_ID,
|
||||
SIZE,
|
||||
@ -73,7 +68,6 @@ const MarketplaceAppCard = memo(
|
||||
const state = useMemo(() => getState(app), [app?.STATE])
|
||||
const { color: stateColor, name: stateName } = state
|
||||
|
||||
const time = useMemo(() => timeFromMilliseconds(+REGTIME), [REGTIME])
|
||||
const type = useMemo(() => getType(app), [app?.TYPE])
|
||||
|
||||
const labels = useMemo(
|
||||
@ -104,8 +98,10 @@ const MarketplaceAppCard = memo(
|
||||
</div>
|
||||
<div className={classes.caption}>
|
||||
<span data-cy="id">{`#${ID}`}</span>
|
||||
<span title={useMemo(() => time.toFormat('ff'), [REGTIME])}>
|
||||
<Timer translateWord={T.RegisteredAt} initial={time} />
|
||||
<span title={`${Tr(T.Version)}: ${VERSION}`}>
|
||||
<span data-cy="version">
|
||||
{Tr(T.Version)}: {VERSION}
|
||||
</span>
|
||||
</span>
|
||||
<span title={`${Tr(T.Owner)}: ${UNAME}`}>
|
||||
<User />
|
||||
|
@ -33,7 +33,7 @@ const COLUMNS = [
|
||||
accessor: 'TEMPLATE.LABELS',
|
||||
filter: 'includesSome',
|
||||
},
|
||||
{ Header: T.RegistrationTime, id: 'time', accessor: 'REGTIME' },
|
||||
{ Header: T.Version, id: 'version', accessor: 'VERSION' },
|
||||
{ Header: T.Marketplace, id: 'marketplace', accessor: 'MARKETPLACE' },
|
||||
{ Header: T.Zone, id: 'zone', accessor: 'ZONE_ID' },
|
||||
]
|
||||
|
@ -74,7 +74,7 @@ const InformationPanel = ({ app = {}, actions }) => {
|
||||
generatePath(PATH.STORAGE.MARKETPLACES.DETAIL, { id: MARKETPLACE_ID }),
|
||||
},
|
||||
{
|
||||
name: T.StartTime,
|
||||
name: T.RegistrationTime,
|
||||
value: timeToString(REGTIME),
|
||||
},
|
||||
{ name: T.Type, value: <StatusChip text={typeName} /> },
|
||||
|
Loading…
x
Reference in New Issue
Block a user