action.hasAlts ? (
<Tooltip
className={classes.button}
- title={action.useAlts(singleSelectedUuid, iconProps) ? action.altName: action.name}
+ title={currentPathIsTrash || action.useAlts(singleSelectedUuid, iconProps) ? action.altName : action.name}
key={i}
disableFocusListener
>
<IconButton onClick={() => 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({})}
</IconButton>
</Tooltip>
) : (
});
}
-const isExactlyOneSelected = (checkedList: TCheckedList) => {
+export const isExactlyOneSelected = (checkedList: TCheckedList) => {
let tally = 0;
let current = '';
for (const uuid in checkedList) {