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

F #1437: Add hint on the VM snapshot tab (#2216)

(cherry picked from commit 8577bc089edfccad771b2e6f42224f516b727ab6)
This commit is contained in:
Sergio Betanzos 2022-07-04 18:58:12 +02:00 committed by Tino Vazquez
parent 0468f475dc
commit bbead3597e
2 changed files with 14 additions and 4 deletions

View File

@ -15,7 +15,8 @@
* ------------------------------------------------------------------------- */
import { ReactElement, useMemo } from 'react'
import PropTypes from 'prop-types'
import { Stack } from '@mui/material'
import HintIcon from 'iconoir-react/dist/QuestionMarkCircle'
import { Stack, Tooltip } from '@mui/material'
import { useGetVmQuery } from 'client/features/OneApi/vm'
import {
@ -24,6 +25,7 @@ import {
DeleteAction,
} from 'client/components/Tabs/Vm/Snapshot/Actions'
import SnapshotCard from 'client/components/Cards/SnapshotCard'
import { T, VM_ACTIONS } from 'client/constants'
import {
getSnapshotList,
@ -59,9 +61,14 @@ const VmSnapshotTab = ({ tabProps: { actions } = {}, id }) => {
return (
<div>
{actionsAvailable?.includes(SNAPSHOT_CREATE) && (
<CreateAction vmId={id} />
)}
<Stack direction="row" gap="1em" alignItems="center">
{actionsAvailable?.includes(SNAPSHOT_CREATE) && (
<CreateAction vmId={id} />
)}
<Tooltip arrow title={Tr(T.VmSnapshotHint)}>
<HintIcon />
</Tooltip>
</Stack>
<Stack gap="1em" py="0.8em" data-cy="snapshots">
{snapshots.map((snapshot) => (

View File

@ -497,6 +497,9 @@ module.exports = {
HostnamePortsForwardedToVmPorts: '%1$s ports %2$s forwarded to VM ports %3$s',
/* VM schema - snapshot */
VmSnapshotNameConcept: 'The new snapshot name. It can be empty',
VmSnapshotHint: `
Snapshots in this tab refer to System Snapshots, which includes all disks and
the memory state of the VM. For disk snapshots, see the Storage tab`,
/* VM schema - actions */
EnforceCapacityChecks: 'Enforce capacity checks',
EnforceCapacityChecksConcept: `