[arvados-workbench2] updated: 2.6.0-79-ge186e236
git repository hosting
git at public.arvados.org
Fri Sep 1 13:59:24 UTC 2023
Summary of changes:
src/components/multiselectToolbar/MultiselectToolbar.tsx | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
via e186e23688c92f91e4cbf564dee5018789e0b8ad (commit)
from 5bfb2e1cb9f87c2e62aaae870a8789ed132eba50 (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 e186e23688c92f91e4cbf564dee5018789e0b8ad
Author: Lisa Knox <lisaknox83 at gmail.com>
Date: Fri Sep 1 09:59:21 2023 -0400
15768: cleanup Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>
diff --git a/src/components/multiselectToolbar/MultiselectToolbar.tsx b/src/components/multiselectToolbar/MultiselectToolbar.tsx
index 085174dd..22a9c713 100644
--- a/src/components/multiselectToolbar/MultiselectToolbar.tsx
+++ b/src/components/multiselectToolbar/MultiselectToolbar.tsx
@@ -68,7 +68,7 @@ export const MultiselectToolbar = connect(
btn.name === "ToggleTrashAction" ? (
<Tooltip
className={classes.button}
- title={currentPathIsTrash ? "Restore All" : "Move to trash"}
+ title={currentPathIsTrash ? "Restore selected" : "Move to trash"}
key={i}
disableFocusListener>
<IconButton onClick={() => props.executeMulti(btn, checkedList, props.resources)}>
@@ -190,10 +190,7 @@ function mapDispatchToProps(dispatch: Dispatch) {
switch (selectedAction.name) {
case contextMenuActionConsts.MOVE_TO:
const firstResource = getResource(selectedToArray(checkedList)[0])(resources) as Resource;
-
- const actionSet = kindToActionSet[firstResource.kind];
- const action = findActionByName(selectedAction.name as string, actionSet);
-
+ const action = findActionByName(selectedAction.name as string, kindToActionSet[firstResource.kind]);
if (action) action.execute(dispatch, kindGroups[firstResource.kind]);
break;
case contextMenuActionConsts.COPY_TO_CLIPBOARD:
@@ -202,9 +199,7 @@ function mapDispatchToProps(dispatch: Dispatch) {
break;
default:
for (const kind in kindGroups) {
- const actionSet = kindToActionSet[kind];
- const action = findActionByName(selectedAction.name as string, actionSet);
-
+ const action = findActionByName(selectedAction.name as string, kindToActionSet[kind]);
if (action) action.execute(dispatch, kindGroups[kind]);
}
break;
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list