mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-20 14:03:36 +03:00
B OpenNebula/One#6621: Cannot select an element when (#3123)
using the refresh button
This commit is contained in:
parent
384ee3c103
commit
b1ef325389
@ -94,8 +94,8 @@ function BackupJobs() {
|
||||
*/
|
||||
const InfoTabs = memo(({ template, gotoPage, unselect }) => {
|
||||
const [getBackupJob, { data, isFetching }] = useLazyGetBackupJobQuery()
|
||||
const id = data?.ID ?? template?.ID
|
||||
const name = data?.NAME ?? template?.NAME
|
||||
const id = template?.ID ?? data?.ID
|
||||
const name = template?.NAME ?? data?.NAME
|
||||
|
||||
return (
|
||||
<Stack overflow="auto">
|
||||
|
@ -32,9 +32,9 @@ import BackupTabs from 'client/components/Tabs/Backup'
|
||||
import { Image, T } from 'client/constants'
|
||||
import { useGeneral } from 'client/features/General'
|
||||
import {
|
||||
useGetBackupsQuery,
|
||||
useLazyGetImageQuery,
|
||||
useUpdateImageMutation,
|
||||
useGetBackupsQuery,
|
||||
} from 'client/features/OneApi/image'
|
||||
|
||||
/**
|
||||
@ -99,8 +99,8 @@ function Backups() {
|
||||
*/
|
||||
const InfoTabs = memo(({ image, gotoPage, unselect }) => {
|
||||
const [getImage, { data: lazyData, isFetching }] = useLazyGetImageQuery()
|
||||
const id = lazyData?.ID ?? image?.ID
|
||||
const name = lazyData?.NAME ?? image?.NAME
|
||||
const id = image?.ID ?? lazyData?.ID
|
||||
const name = image?.NAME ?? lazyData?.NAME
|
||||
|
||||
return (
|
||||
<Stack overflow="auto">
|
||||
|
@ -96,8 +96,8 @@ function Clusters() {
|
||||
*/
|
||||
const InfoTabs = memo(({ cluster, gotoPage, unselect }) => {
|
||||
const [get, { data: lazyData, isFetching }] = useLazyGetClustersQuery()
|
||||
const id = lazyData?.ID ?? cluster?.ID
|
||||
const name = lazyData?.NAME ?? cluster?.NAME
|
||||
const id = cluster?.ID ?? lazyData?.ID
|
||||
const name = cluster?.NAME ?? lazyData?.NAME
|
||||
|
||||
return (
|
||||
<Stack overflow="auto">
|
||||
|
@ -96,8 +96,8 @@ function Datastores() {
|
||||
const InfoTabs = memo(({ datastore, gotoPage, unselect }) => {
|
||||
const [getDatastore, { data: lazyData, isFetching }] =
|
||||
useLazyGetDatastoreQuery()
|
||||
const id = lazyData?.ID ?? datastore?.ID
|
||||
const name = lazyData?.NAME ?? datastore?.NAME
|
||||
const id = datastore?.ID ?? lazyData?.ID
|
||||
const name = datastore?.NAME ?? lazyData?.NAME
|
||||
|
||||
return (
|
||||
<Stack overflow="auto">
|
||||
|
@ -90,8 +90,8 @@ function Files() {
|
||||
*/
|
||||
const InfoTabs = memo(({ file, gotoPage, unselect }) => {
|
||||
const [getImage, { data: lazyData, isFetching }] = useLazyGetImageQuery()
|
||||
const id = lazyData?.ID ?? file?.ID
|
||||
const name = lazyData?.NAME ?? file?.NAME
|
||||
const id = file?.ID ?? lazyData?.ID
|
||||
const name = file?.NAME ?? lazyData?.NAME
|
||||
|
||||
return (
|
||||
<Stack overflow="auto">
|
||||
|
@ -96,8 +96,8 @@ function Groups() {
|
||||
*/
|
||||
const InfoTabs = memo(({ group, gotoPage, unselect }) => {
|
||||
const [get, { data: lazyData, isFetching }] = useLazyGetGroupQuery()
|
||||
const id = lazyData?.ID ?? group?.ID
|
||||
const name = lazyData?.NAME ?? group?.NAME
|
||||
const id = group?.ID ?? lazyData?.ID
|
||||
const name = group?.NAME ?? lazyData?.NAME
|
||||
|
||||
return (
|
||||
<Stack overflow="auto">
|
||||
|
@ -95,8 +95,8 @@ function Hosts() {
|
||||
*/
|
||||
const InfoTabs = memo(({ host, gotoPage, unselect }) => {
|
||||
const [getVm, { data: lazyData, isFetching }] = useLazyGetHostQuery()
|
||||
const id = lazyData?.ID ?? host?.ID
|
||||
const name = lazyData?.NAME ?? host?.NAME
|
||||
const id = host?.ID ?? lazyData?.ID
|
||||
const name = host?.NAME ?? lazyData?.NAME
|
||||
|
||||
return (
|
||||
<Stack overflow="auto">
|
||||
|
@ -95,8 +95,8 @@ function Images() {
|
||||
*/
|
||||
const InfoTabs = memo(({ image, gotoPage, unselect }) => {
|
||||
const [getImage, { data: lazyData, isFetching }] = useLazyGetImageQuery()
|
||||
const id = lazyData?.ID ?? image?.ID
|
||||
const name = lazyData?.NAME ?? image?.NAME
|
||||
const id = image?.ID ?? lazyData?.ID
|
||||
const name = image?.NAME ?? lazyData?.NAME
|
||||
|
||||
return (
|
||||
<Stack overflow="auto">
|
||||
|
@ -97,8 +97,8 @@ const InfoTabs = memo(({ app, gotoPage, unselect }) => {
|
||||
const [get, queryState] = useLazyGetMarketplaceAppQuery()
|
||||
const { data: lazyData, isFetching } = queryState
|
||||
|
||||
const id = lazyData?.ID ?? app?.ID
|
||||
const name = lazyData?.NAME ?? app?.NAME
|
||||
const id = app?.ID ?? lazyData?.ID
|
||||
const name = app?.NAME ?? lazyData?.NAME
|
||||
|
||||
return (
|
||||
<Stack overflow="auto">
|
||||
|
@ -96,8 +96,8 @@ function Marketplaces() {
|
||||
*/
|
||||
const InfoTabs = memo(({ market, gotoPage, unselect }) => {
|
||||
const [get, { data: lazyData, isFetching }] = useLazyGetMarketplaceQuery()
|
||||
const id = lazyData?.ID ?? market?.ID
|
||||
const name = lazyData?.NAME ?? market?.NAME
|
||||
const id = market?.ID ?? lazyData?.ID
|
||||
const name = market?.NAME ?? lazyData?.NAME
|
||||
|
||||
return (
|
||||
<Stack overflow="auto">
|
||||
|
@ -96,8 +96,8 @@ function SecurityGroups() {
|
||||
const InfoTabs = memo(({ securityGroup, gotoPage, unselect }) => {
|
||||
const [getSecurityGroup, { data: lazyData, isFetching }] =
|
||||
useLazyGetSecGroupQuery()
|
||||
const id = lazyData?.ID ?? securityGroup?.ID
|
||||
const name = lazyData?.NAME ?? securityGroup?.NAME
|
||||
const id = securityGroup?.ID ?? lazyData?.ID
|
||||
const name = securityGroup?.NAME ?? lazyData?.NAME
|
||||
|
||||
return (
|
||||
<Stack overflow="auto">
|
||||
|
@ -91,8 +91,8 @@ function ServiceTemplates() {
|
||||
*/
|
||||
const InfoTabs = memo(({ template, gotoPage, unselect }) => {
|
||||
const [get, { data: lazyData, isFetching }] = useLazyGetServiceTemplateQuery()
|
||||
const id = lazyData?.ID ?? template?.ID
|
||||
const name = lazyData?.NAME ?? template?.NAME
|
||||
const id = template?.ID ?? lazyData?.ID
|
||||
const name = template?.NAME ?? lazyData?.NAME
|
||||
|
||||
return (
|
||||
<Stack overflow="auto">
|
||||
|
@ -91,8 +91,8 @@ function Services() {
|
||||
*/
|
||||
const InfoTabs = memo(({ service, gotoPage, unselect }) => {
|
||||
const [get, { data: lazyData, isFetching }] = useLazyGetServiceQuery()
|
||||
const id = lazyData?.ID ?? service?.ID
|
||||
const name = lazyData?.NAME ?? service?.NAME
|
||||
const id = service?.ID ?? lazyData?.ID
|
||||
const name = service?.NAME ?? lazyData?.NAME
|
||||
|
||||
return (
|
||||
<Stack overflow="auto">
|
||||
|
@ -95,8 +95,8 @@ function Users() {
|
||||
*/
|
||||
const InfoTabs = memo(({ user, gotoPage, unselect }) => {
|
||||
const [get, { data: lazyData, isFetching }] = useLazyGetUserQuery()
|
||||
const id = lazyData?.ID ?? user?.ID
|
||||
const name = lazyData?.NAME ?? user?.NAME
|
||||
const id = user?.ID ?? lazyData?.ID
|
||||
const name = user?.NAME ?? lazyData?.NAME
|
||||
|
||||
return (
|
||||
<Stack overflow="auto">
|
||||
|
@ -93,8 +93,8 @@ function VirtualDataCenters() {
|
||||
*/
|
||||
const InfoTabs = memo(({ template, gotoPage, unselect }) => {
|
||||
const [getVDC, { data, isFetching }] = useLazyGetVDCQuery()
|
||||
const id = data?.ID ?? template?.ID
|
||||
const name = data?.NAME ?? template?.NAME
|
||||
const id = template?.ID ?? data?.ID
|
||||
const name = template?.NAME ?? data?.NAME
|
||||
|
||||
return (
|
||||
<Stack overflow="auto">
|
||||
|
@ -95,8 +95,8 @@ function VNetworkTemplates() {
|
||||
*/
|
||||
const InfoTabs = memo(({ vnTemplate, gotoPage, unselect }) => {
|
||||
const [get, { data: lazyData, isFetching }] = useLazyGetVNTemplateQuery()
|
||||
const id = lazyData?.ID ?? vnTemplate?.ID
|
||||
const name = lazyData?.NAME ?? vnTemplate?.NAME
|
||||
const id = vnTemplate?.ID ?? lazyData?.ID
|
||||
const name = vnTemplate?.NAME ?? lazyData?.NAME
|
||||
|
||||
return (
|
||||
<Stack overflow="auto">
|
||||
|
@ -120,8 +120,8 @@ function VirtualMachines() {
|
||||
const InfoTabs = memo(
|
||||
({ vm, gotoPage, unselect, handleDismissError, tags }) => {
|
||||
const [getVm, { data: lazyData, isFetching }] = useLazyGetVmQuery()
|
||||
const id = lazyData?.ID ?? vm?.ID
|
||||
const name = lazyData?.NAME ?? vm?.NAME
|
||||
const id = vm?.ID ?? lazyData?.ID
|
||||
const name = vm?.NAME ?? lazyData?.NAME
|
||||
|
||||
return (
|
||||
<Stack overflow="auto">
|
||||
|
@ -95,8 +95,8 @@ function VirtualNetworks() {
|
||||
*/
|
||||
const InfoTabs = memo(({ vnet, gotoPage, unselect }) => {
|
||||
const [get, { data: lazyData, isFetching }] = useLazyGetVNetworkQuery()
|
||||
const id = lazyData?.ID ?? vnet?.ID
|
||||
const name = lazyData?.NAME ?? vnet?.NAME
|
||||
const id = vnet?.ID ?? lazyData?.ID
|
||||
const name = vnet?.NAME ?? lazyData?.NAME
|
||||
|
||||
return (
|
||||
<Stack overflow="auto">
|
||||
|
@ -93,8 +93,8 @@ function VRouterTemplates() {
|
||||
*/
|
||||
const InfoTabs = memo(({ template, gotoPage, unselect }) => {
|
||||
const [getTemplate, { data, isFetching }] = useLazyGetVRouterTemplateQuery()
|
||||
const id = data?.ID ?? template?.ID
|
||||
const name = data?.NAME ?? template?.NAME
|
||||
const id = template?.ID ?? data?.ID
|
||||
const name = template?.NAME ?? data?.NAME
|
||||
|
||||
return (
|
||||
<Stack overflow="auto">
|
||||
|
@ -88,8 +88,8 @@ function VRouters() {
|
||||
*/
|
||||
const InfoTabs = memo(({ template, gotoPage, unselect }) => {
|
||||
const [getTemplate, { data, isFetching }] = useLazyGetVRouterQuery()
|
||||
const id = data?.ID ?? template?.ID
|
||||
const name = data?.NAME ?? template?.NAME
|
||||
const id = template?.ID ?? data?.ID
|
||||
const name = template?.NAME ?? data?.NAME
|
||||
|
||||
return (
|
||||
<Stack overflow="auto">
|
||||
|
@ -95,8 +95,8 @@ function VmGroups() {
|
||||
*/
|
||||
const InfoTabs = memo(({ user, gotoPage, unselect }) => {
|
||||
const [get, { data: lazyData, isFetching }] = useLazyGetVMGroupQuery()
|
||||
const id = lazyData?.ID ?? user?.ID
|
||||
const name = lazyData?.NAME ?? user?.NAME
|
||||
const id = user?.ID ?? lazyData?.ID
|
||||
const name = user?.NAME ?? lazyData?.NAME
|
||||
|
||||
return (
|
||||
<Stack overflow="auto">
|
||||
|
@ -93,8 +93,8 @@ function VmTemplates() {
|
||||
*/
|
||||
const InfoTabs = memo(({ template, gotoPage, unselect }) => {
|
||||
const [getTemplate, { data, isFetching }] = useLazyGetTemplateQuery()
|
||||
const id = data?.ID ?? template?.ID
|
||||
const name = data?.NAME ?? template?.NAME
|
||||
const id = template?.ID ?? data?.ID
|
||||
const name = template?.NAME ?? data?.NAME
|
||||
|
||||
return (
|
||||
<Stack overflow="auto">
|
||||
|
@ -88,8 +88,8 @@ function Zones() {
|
||||
*/
|
||||
const InfoTabs = memo(({ zone, gotoPage, unselect }) => {
|
||||
const [get, { data: lazyData, isFetching }] = useLazyGetZoneQuery()
|
||||
const id = lazyData?.ID ?? zone?.ID
|
||||
const name = lazyData?.NAME ?? zone?.NAME
|
||||
const id = zone?.ID ?? lazyData?.ID
|
||||
const name = zone?.NAME ?? lazyData?.NAME
|
||||
|
||||
return (
|
||||
<Stack overflow="auto">
|
||||
|
Loading…
x
Reference in New Issue
Block a user