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

F #5422: Remove import action (#2099)

This commit is contained in:
Sergio Betanzos 2022-05-27 11:47:50 +02:00 committed by GitHub
parent c3e48a5f45
commit fdff696bc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ import { useHistory } from 'react-router-dom'
import { Typography } from '@mui/material'
import {
AddSquare,
Import,
// Import,
Trash,
PlayOutline,
Lock,
@ -102,16 +102,6 @@ const Actions = () => {
icon: AddSquare,
action: () => history.push(PATH.TEMPLATE.VMS.CREATE),
},
{
accessor: VM_TEMPLATE_ACTIONS.IMPORT_DIALOG,
tooltip: T.Import,
icon: Import,
selected: { max: 1 },
disabled: true,
action: (rows) => {
// TODO: go to IMPORT form
},
},
{
accessor: VM_TEMPLATE_ACTIONS.INSTANTIATE_DIALOG,
tooltip: T.Instantiate,
@ -136,6 +126,17 @@ const Actions = () => {
history.push(path, [RESOURCE_NAMES.VM_TEMPLATE, template])
},
},
/* {
// TODO: Import VM Template from vCenter
accessor: VM_TEMPLATE_ACTIONS.IMPORT_DIALOG,
tooltip: T.Import,
icon: Import,
selected: { max: 1 },
disabled: true,
action: (rows) => {
// TODO: go to IMPORT form
},
}, */
{
accessor: VM_TEMPLATE_ACTIONS.UPDATE_DIALOG,
label: T.Update,