Skip to content
Snippets Groups Projects
Commit 46212b8e authored by Tom Robinson's avatar Tom Robinson
Browse files

Only show sub collection toggle if there are sub collections

parent 47698d2d
Branches
Tags
No related merge requests found
......@@ -750,8 +750,15 @@ export const getCollectionsPermissionsGrid = createSelector(
OPTION_NONE,
];
},
actions(groupId, entityId) {
return [TogglePropagateAction];
actions(groupId, { collectionId }) {
const collection = _.findWhere(collections, {
id: collectionId,
});
if (collection.children.length > 0) {
return [TogglePropagateAction];
} else {
return [];
}
},
getter(groupId, entityId) {
return getCollectionPermission(permissions, groupId, entityId);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment