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:
parent
b8c2f60759
commit
b228af1f6a
@ -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,
|
||||
|
@ -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) => (
|
||||
|
Loading…
Reference in New Issue
Block a user