projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
15768: changed isSingle to fromContextMenu for clarity Arvados-DCO-1.1-Signed-off...
[arvados.git]
/
src
/
views-components
/
multiselect-toolbar
/
ms-collection-action-set.ts
diff --git
a/src/views-components/multiselect-toolbar/ms-collection-action-set.ts
b/src/views-components/multiselect-toolbar/ms-collection-action-set.ts
index 3f6b2c3875d0480f6a3a2af1228a7b3260331cf3..b0a2a1b024793aafc8e86d269f468c7a49324862 100644
(file)
--- a/
src/views-components/multiselect-toolbar/ms-collection-action-set.ts
+++ b/
src/views-components/multiselect-toolbar/ms-collection-action-set.ts
@@
-16,7
+16,7
@@
export const msCollectionActionSet: ContextMenuActionSet = [
icon: CopyIcon,
name: "Make a copy",
execute: (dispatch, [...resources]) => {
icon: CopyIcon,
name: "Make a copy",
execute: (dispatch, [...resources]) => {
- if (resources[0].
isSingle
|| resources.length === 1) dispatch<any>(openCollectionCopyDialog(resources[0]));
+ if (resources[0].
fromContextMenu
|| resources.length === 1) dispatch<any>(openCollectionCopyDialog(resources[0]));
else dispatch<any>(openMultiCollectionCopyDialog(resources[0]));
},
},
else dispatch<any>(openMultiCollectionCopyDialog(resources[0]));
},
},