1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-03 01:17:41 +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 { T } from 'client/constants'
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
@ -48,12 +51,15 @@ function ServiceTemplates() {
<ResourcesBackButton
selectedRows={selectedRows}
setSelectedRows={setSelectedRows}
useUpdateMutation={useUpdateServiceTemplateMutation}
zone={zone}
actions={actions}
table={(props) => (
<ServiceTemplatesTable
onSelectedRowsChange={props.setSelectedRows}
globalActions={props.actions}
useUpdateMutation={props.useUpdateMutation}
onRowClick={props.resourcesBackButtonClick}
zoneId={props.zone}
initialState={{
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 { T } from 'client/constants'
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
@ -48,16 +51,20 @@ function Services() {
<ResourcesBackButton
selectedRows={selectedRows}
setSelectedRows={setSelectedRows}
useUpdateMutation={useServiceAddActionMutation}
zone={zone}
actions={actions}
table={(props) => (
<ServicesTable
onSelectedRowsChange={props.setSelectedRows}
globalActions={props.actions}
useUpdateMutation={props.useUpdateMutation}
zoneId={props.zone}
onRowClick={props.resourcesBackButtonClick}
initialState={{
selectedRowIds: props.selectedRowsTable,
}}
enabledFullScreen={props.enabledFullScreen}
/>
)}
simpleGroupsTags={(props) => (