[arvados] updated: 2.7.0-5779-g846d132228

git repository hosting git at public.arvados.org
Mon Jan 8 19:59:15 UTC 2024


Summary of changes:
 services/workbench2/src/components/data-table/data-table.tsx          | 3 +--
 .../workbench2/src/views-components/data-explorer/data-explorer.tsx   | 4 +++-
 2 files changed, 4 insertions(+), 3 deletions(-)

       via  846d1322282be39bd2db362c7f97a4068a3e1867 (commit)
      from  66e0e1a0826c5e6aaaa15674a0cd2384c99d0ff2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 846d1322282be39bd2db362c7f97a4068a3e1867
Author: Lisa Knox <lisaknox83 at gmail.com>
Date:   Mon Jan 8 14:59:11 2024 -0500

    21315: fixed bug where a deselected item can still be shown in details panel Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>

diff --git a/services/workbench2/src/components/data-table/data-table.tsx b/services/workbench2/src/components/data-table/data-table.tsx
index 4f618227dc..b9d529c2fa 100644
--- a/services/workbench2/src/components/data-table/data-table.tsx
+++ b/services/workbench2/src/components/data-table/data-table.tsx
@@ -98,7 +98,7 @@ const styles: StyleRulesCallback<CssRules> = (theme: Theme) => ({
         width: '2rem',
         height: "1.5rem",
         paddingLeft: '0.8rem',
-        marginRight: '0.2rem'
+        marginRight: '0.5rem'
     },
     checkBoxCell: {
         padding: "0",
@@ -107,7 +107,6 @@ const styles: StyleRulesCallback<CssRules> = (theme: Theme) => ({
         width: '1.4rem',
         height: "1.4rem",
         paddingLeft: '0.25rem',
-        paddingTop: '0rem',
         marginLeft: '0.5rem',
         cursor: "pointer",
     },
diff --git a/services/workbench2/src/views-components/data-explorer/data-explorer.tsx b/services/workbench2/src/views-components/data-explorer/data-explorer.tsx
index 2e316f6859..9b11f2ad3a 100644
--- a/services/workbench2/src/views-components/data-explorer/data-explorer.tsx
+++ b/services/workbench2/src/views-components/data-explorer/data-explorer.tsx
@@ -28,7 +28,9 @@ const mapStateToProps = ({ progressIndicator, dataExplorer, router, multiselect,
     const currentRoute = router.location ? router.location.pathname : "";
     const currentRefresh = localStorage.getItem(LAST_REFRESH_TIMESTAMP) || "";
     const isDetailsResourceChecked = multiselect.checkedList[detailsPanel.resourceUuid]
-    const currentItemUuid = currentRoute === "/workflows" ? properties.workflowPanelDetailsUuid : isDetailsResourceChecked ? detailsPanel.resourceUuid : multiselect.selectedUuid;
+    const isOnlyOneSelected = Object.values(multiselect.checkedList).filter(x => x === true).length === 1;
+    const currentItemUuid =
+        currentRoute === '/workflows' ? properties.workflowPanelDetailsUuid : isDetailsResourceChecked && isOnlyOneSelected ? detailsPanel.resourceUuid : multiselect.selectedUuid;
     const isMSToolbarVisible = multiselect.isVisible;
     return {
         ...dataExplorerState,

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list