1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

F #6323: Add status lock (#2807)

This commit is contained in:
Jorge Miguel Lobo Escalona 2023-11-08 13:24:08 +01:00 committed by GitHub
parent 2808f43c72
commit b749757934
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -21,6 +21,7 @@ import { T } from 'client/constants'
const COLUMNS = [
{ Header: T.ID, id: 'id', accessor: 'ID', sortType: 'number' },
{ Header: T.Name, id: 'name', accessor: 'NAME' },
{ Header: T.Locked, id: 'locked', accessor: 'LOCK' },
]
COLUMNS.noFilterIds = ['id', 'name']

View File

@ -24,7 +24,7 @@ import {
import { BACKUPJOB_ACTIONS, T } from 'client/constants'
import { timeFromMilliseconds } from 'client/models/Helper'
import { levelLockToString, timeFromMilliseconds } from 'client/models/Helper'
/**
* Renders mainly information tab.
@ -38,7 +38,7 @@ const InformationPanel = ({ backupjob = {}, actions }) => {
const [rename] = useRenameBackupJobMutation()
const [setPriority] = useUpdatePriorityBackupJobMutation()
const { ID, NAME, PRIORITY, LAST_BACKUP_TIME, LAST_BACKUP_DURATION } =
const { ID, NAME, PRIORITY, LAST_BACKUP_TIME, LAST_BACKUP_DURATION, LOCK } =
backupjob
const time = useMemo(() => {
@ -85,6 +85,11 @@ const InformationPanel = ({ backupjob = {}, actions }) => {
value: LAST_BACKUP_DURATION,
dataCy: 'lastDurationTime',
},
{
name: T.Locked,
value: levelLockToString(LOCK?.LOCKED),
dataCy: 'locked',
},
].filter(Boolean)
return (