mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-29 21:47:02 +03:00
M #~: fix file tab (#3312)
This commit is contained in:
parent
c124e4341d
commit
b8c2f60759
@ -31,7 +31,10 @@ import fileActions from 'client/components/Tables/Files/actions'
|
|||||||
import FileTabs from 'client/components/Tabs/File'
|
import FileTabs from 'client/components/Tabs/File'
|
||||||
import { Image, T } from 'client/constants'
|
import { Image, T } from 'client/constants'
|
||||||
import { useGeneral } from 'client/features/General'
|
import { useGeneral } from 'client/features/General'
|
||||||
import { useLazyGetImageQuery } from 'client/features/OneApi/image'
|
import {
|
||||||
|
useLazyGetImageQuery,
|
||||||
|
useUpdateImageMutation,
|
||||||
|
} from 'client/features/OneApi/image'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Displays a list of Files with a split pane between the list and selected row(s).
|
* Displays a list of Files with a split pane between the list and selected row(s).
|
||||||
@ -47,12 +50,15 @@ function Files() {
|
|||||||
<ResourcesBackButton
|
<ResourcesBackButton
|
||||||
selectedRows={selectedRows}
|
selectedRows={selectedRows}
|
||||||
setSelectedRows={setSelectedRows}
|
setSelectedRows={setSelectedRows}
|
||||||
|
useUpdateMutation={useUpdateImageMutation}
|
||||||
zone={zone}
|
zone={zone}
|
||||||
actions={actions}
|
actions={actions}
|
||||||
table={(props) => (
|
table={(props) => (
|
||||||
<FilesTable
|
<FilesTable
|
||||||
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,
|
||||||
@ -99,6 +105,8 @@ const InfoTabs = memo(({ file, gotoPage, unselect }) => {
|
|||||||
<Typography color="text.primary" noWrap flexGrow={1}>
|
<Typography color="text.primary" noWrap flexGrow={1}>
|
||||||
{`#${id} | ${name}`}
|
{`#${id} | ${name}`}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
|
{/* -- ACTIONS -- */}
|
||||||
<SubmitButton
|
<SubmitButton
|
||||||
data-cy="detail-refresh"
|
data-cy="detail-refresh"
|
||||||
icon={<RefreshDouble />}
|
icon={<RefreshDouble />}
|
||||||
@ -122,6 +130,7 @@ const InfoTabs = memo(({ file, gotoPage, unselect }) => {
|
|||||||
onClick={() => unselect()}
|
onClick={() => unselect()}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
{/* -- END ACTIONS -- */}
|
||||||
</Stack>
|
</Stack>
|
||||||
<FileTabs id={id} />
|
<FileTabs id={id} />
|
||||||
</Stack>
|
</Stack>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user