1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

M #~: Minor fix on selected rows (#2040)

This commit is contained in:
Sergio Betanzos 2022-05-12 16:09:58 +02:00 committed by GitHub
parent 6e2f29df49
commit 4f78809c84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 9 additions and 9 deletions

View File

@ -32,7 +32,7 @@ function Clusters() {
{selectedRows?.length > 0 && (
<Stack overflow="auto">
{selectedRows?.length === 1 ? (
<ClusterTabs id={selectedRows[0]?.values.ID} />
<ClusterTabs id={selectedRows[0]?.original.ID} />
) : (
<Stack direction="row" flexWrap="wrap" gap={1} alignItems="center">
<MultipleTags

View File

@ -32,7 +32,7 @@ function Datastores() {
{selectedRows?.length > 0 && (
<Stack overflow="auto">
{selectedRows?.length === 1 ? (
<DatastoreTabs id={selectedRows[0]?.values.ID} />
<DatastoreTabs id={selectedRows[0]?.original.ID} />
) : (
<Stack direction="row" flexWrap="wrap" gap={1} alignItems="center">
<MultipleTags

View File

@ -32,7 +32,7 @@ function Groups() {
{selectedRows?.length > 0 && (
<Stack overflow="auto" data-cy={'detail'}>
{selectedRows?.length === 1 ? (
<GroupTabs id={selectedRows[0]?.values.ID} />
<GroupTabs id={selectedRows[0]?.original.ID} />
) : (
<Stack direction="row" flexWrap="wrap" gap={1} alignItems="center">
<MultipleTags

View File

@ -37,7 +37,7 @@ function Hosts() {
{selectedRows?.length > 0 && (
<Stack overflow="auto">
{selectedRows?.length === 1 ? (
<HostTabs id={selectedRows[0]?.values.ID} />
<HostTabs id={selectedRows[0]?.original.ID} />
) : (
<Stack direction="row" flexWrap="wrap" gap={1} alignItems="center">
<MultipleTags

View File

@ -32,7 +32,7 @@ function Images() {
{selectedRows?.length > 0 && (
<Stack overflow="auto">
{selectedRows?.length === 1 ? (
<ImageTabs id={selectedRows[0]?.values.ID} />
<ImageTabs id={selectedRows[0]?.original.ID} />
) : (
<Stack direction="row" flexWrap="wrap" gap={1} alignItems="center">
<MultipleTags

View File

@ -32,7 +32,7 @@ function Marketplaces() {
{selectedRows?.length > 0 && (
<Stack overflow="auto" data-cy={'detail'}>
{selectedRows?.length === 1 ? (
<MarketplaceTabs id={selectedRows[0]?.values.ID} />
<MarketplaceTabs id={selectedRows[0]?.original.ID} />
) : (
<Stack direction="row" flexWrap="wrap" gap={1} alignItems="center">
<MultipleTags

View File

@ -32,7 +32,7 @@ function Users() {
{selectedRows?.length > 0 && (
<Stack overflow="auto" data-cy={'detail'}>
{selectedRows?.length === 1 ? (
<UserTabs id={selectedRows[0]?.values.ID} />
<UserTabs id={selectedRows[0]?.original.ID} />
) : (
<Stack direction="row" flexWrap="wrap" gap={1} alignItems="center">
<MultipleTags

View File

@ -32,7 +32,7 @@ function VNetworkTemplates() {
{selectedRows?.length > 0 && (
<Stack overflow="auto" data-cy={'detail'}>
{selectedRows?.length === 1 ? (
<VNetworkTemplateTabs id={selectedRows[0]?.values.ID} />
<VNetworkTemplateTabs id={selectedRows[0]?.original.ID} />
) : (
<Stack direction="row" flexWrap="wrap" gap={1} alignItems="center">
<MultipleTags

View File

@ -32,7 +32,7 @@ function Zones() {
{selectedRows?.length > 0 && (
<Stack overflow="auto" data-cy={'detail'}>
{selectedRows?.length === 1 ? (
<ZoneTabs id={selectedRows[0]?.values.ID} />
<ZoneTabs id={selectedRows[0]?.original.ID} />
) : (
<Stack direction="row" flexWrap="wrap" gap={1} alignItems="center">
<MultipleTags