mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-20 10:50:08 +03:00
M #-: Delete the register time in apps (#2942)
Signed-off-by: David Carracedo <dcarracedo@opennebula.io> (cherry picked from commit b0bcc9953b89860ddc9a608676384795b9dac7ae)
This commit is contained in:
parent
75e3561075
commit
7e331ab460
@ -22,7 +22,7 @@ import { StatusChip } from 'client/components/Status'
|
||||
import { List } from 'client/components/Tabs/Common'
|
||||
|
||||
import { getType, getState } from 'client/models/MarketplaceApp'
|
||||
import { timeToString, levelLockToString } from 'client/models/Helper'
|
||||
import { levelLockToString } from 'client/models/Helper'
|
||||
import { prettyBytes } from 'client/utils'
|
||||
import { T, MARKETPLACE_APP_ACTIONS, MarketplaceApp } from 'client/constants'
|
||||
import { PATH } from 'client/apps/sunstone/routesOne'
|
||||
@ -38,17 +38,8 @@ import { PATH } from 'client/apps/sunstone/routesOne'
|
||||
const InformationPanel = ({ app = {}, actions }) => {
|
||||
const [rename] = useRenameAppMutation()
|
||||
|
||||
const {
|
||||
ID,
|
||||
NAME,
|
||||
REGTIME,
|
||||
LOCK,
|
||||
MARKETPLACE,
|
||||
MARKETPLACE_ID,
|
||||
SIZE,
|
||||
FORMAT,
|
||||
VERSION,
|
||||
} = app
|
||||
const { ID, NAME, LOCK, MARKETPLACE, MARKETPLACE_ID, SIZE, FORMAT, VERSION } =
|
||||
app
|
||||
|
||||
const typeName = getType(app)
|
||||
const { name: stateName, color: stateColor } = getState(app)
|
||||
@ -73,10 +64,6 @@ const InformationPanel = ({ app = {}, actions }) => {
|
||||
!Number.isNaN(+MARKETPLACE_ID) &&
|
||||
generatePath(PATH.STORAGE.MARKETPLACES.DETAIL, { id: MARKETPLACE_ID }),
|
||||
},
|
||||
{
|
||||
name: T.RegistrationTime,
|
||||
value: timeToString(REGTIME),
|
||||
},
|
||||
{ name: T.Type, value: <StatusChip text={typeName} /> },
|
||||
{ name: T.Size, value: prettyBytes(SIZE, 'MB') },
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user