1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-04 05:17:40 +03:00

M #-: Fix FireEdge service tests (#3313)

Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
This commit is contained in:
Jorge Miguel Lobo Escalona 2024-12-02 19:52:08 +01:00 committed by GitHub
parent b8c2f60759
commit b228af1f6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 2 deletions

View File

@ -31,7 +31,10 @@ import ServiceTemplateActions from 'client/components/Tables/ServiceTemplates/ac
import ServiceTemplateTabs from 'client/components/Tabs/ServiceTemplate' import ServiceTemplateTabs from 'client/components/Tabs/ServiceTemplate'
import { T } from 'client/constants' import { T } from 'client/constants'
import { useGeneral } from 'client/features/General' import { useGeneral } from 'client/features/General'
import { useLazyGetServiceTemplateQuery } from 'client/features/OneApi/serviceTemplate' import {
useLazyGetServiceTemplateQuery,
useUpdateServiceTemplateMutation,
} from 'client/features/OneApi/serviceTemplate'
/** /**
* Displays a list of Service Templates with a split pane between * Displays a list of Service Templates with a split pane between
@ -48,12 +51,15 @@ function ServiceTemplates() {
<ResourcesBackButton <ResourcesBackButton
selectedRows={selectedRows} selectedRows={selectedRows}
setSelectedRows={setSelectedRows} setSelectedRows={setSelectedRows}
useUpdateMutation={useUpdateServiceTemplateMutation}
zone={zone} zone={zone}
actions={actions} actions={actions}
table={(props) => ( table={(props) => (
<ServiceTemplatesTable <ServiceTemplatesTable
onSelectedRowsChange={props.setSelectedRows} onSelectedRowsChange={props.setSelectedRows}
globalActions={props.actions} globalActions={props.actions}
useUpdateMutation={props.useUpdateMutation}
onRowClick={props.resourcesBackButtonClick}
zoneId={props.zone} zoneId={props.zone}
initialState={{ initialState={{
selectedRowIds: props.selectedRowsTable, selectedRowIds: props.selectedRowsTable,

View File

@ -31,7 +31,10 @@ import ServiceActions from 'client/components/Tables/Services/actions'
import ServiceTabs from 'client/components/Tabs/Service' import ServiceTabs from 'client/components/Tabs/Service'
import { T } from 'client/constants' import { T } from 'client/constants'
import { useGeneral } from 'client/features/General' import { useGeneral } from 'client/features/General'
import { useLazyGetServiceQuery } from 'client/features/OneApi/service' import {
useLazyGetServiceQuery,
useServiceAddActionMutation,
} from 'client/features/OneApi/service'
/** /**
* Displays a list of Service with a split pane between * Displays a list of Service with a split pane between
@ -48,16 +51,20 @@ function Services() {
<ResourcesBackButton <ResourcesBackButton
selectedRows={selectedRows} selectedRows={selectedRows}
setSelectedRows={setSelectedRows} setSelectedRows={setSelectedRows}
useUpdateMutation={useServiceAddActionMutation}
zone={zone} zone={zone}
actions={actions} actions={actions}
table={(props) => ( table={(props) => (
<ServicesTable <ServicesTable
onSelectedRowsChange={props.setSelectedRows} onSelectedRowsChange={props.setSelectedRows}
globalActions={props.actions} globalActions={props.actions}
useUpdateMutation={props.useUpdateMutation}
zoneId={props.zone} zoneId={props.zone}
onRowClick={props.resourcesBackButtonClick}
initialState={{ initialState={{
selectedRowIds: props.selectedRowsTable, selectedRowIds: props.selectedRowsTable,
}} }}
enabledFullScreen={props.enabledFullScreen}
/> />
)} )}
simpleGroupsTags={(props) => ( simpleGroupsTags={(props) => (