X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/9bbf6608b882626bb7e043efed8e95488d611dd0..bead3b2896eaaceb9b9a3c805d40e8048c93b218:/src/components/multiselect-toolbar/MultiselectToolbar.tsx diff --git a/src/components/multiselect-toolbar/MultiselectToolbar.tsx b/src/components/multiselect-toolbar/MultiselectToolbar.tsx index cb884932..72d375ff 100644 --- a/src/components/multiselect-toolbar/MultiselectToolbar.tsx +++ b/src/components/multiselect-toolbar/MultiselectToolbar.tsx @@ -79,12 +79,12 @@ export const MultiselectToolbar = connect( action.hasAlts ? ( props.executeMulti(action, checkedList, iconProps.resources)}> - {action.useAlts(singleSelectedUuid, iconProps) ? action.altIcon && action.altIcon({}): action.icon({})} + {currentPathIsTrash || action.useAlts(singleSelectedUuid, iconProps) ? action.altIcon && action.altIcon({}) : action.icon({})} ) : ( @@ -184,7 +184,7 @@ function selectActionsByKind(currentResourceKinds: Array, filterSet: TMu }); } -const isExactlyOneSelected = (checkedList: TCheckedList) => { +export const isExactlyOneSelected = (checkedList: TCheckedList) => { let tally = 0; let current = ''; for (const uuid in checkedList) {