# Right click to disable / enable group

**URL:** <https://discourse.nodered.org/t/right-click-to-disable-enable-group/90619>\
**Category:** Core Development\
**Tags:** editor\
**Created:** [1 September 2024 16:28 UTC](https://discourse.nodered.org/t/right-click-to-disable-enable-group/90619 "2024-09-01T16:28:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [1 September 2024 16:28 UTC](https://discourse.nodered.org/t/right-click-to-disable-enable-group/90619/1 "2024-09-01T16:28:42Z")

</div>

If I right click on a group, under "node" there is the option "Disable selected nodes"

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/1/e14febbcb9d042299d3e57b9ccff2bbfe2bc3f38.png)

After disabling them, if you manually select some of the grouped nodes it offers "Enable selected nodes" but right clicking the group still offers "disable selected nodes"

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/b/5bbd3314640241451206bf7b5855684191e9c04f.png)

1. Clearly you should be able to re-enable the whole group.
2. Is it possible to put enable/disable as options in the group submenu, or better yet, on the top level menu for groups?  
Perhaps it could replace "Select all" which I think is the same as simply left clicking on the group?

---

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [1 September 2024 17:29 UTC](https://discourse.nodered.org/t/right-click-to-disable-enable-group/90619/2 "2024-09-01T17:29:29Z")

</div>

Its fixed but pending for v4.1 (or 4.0.3)

> <https://github.com/node-red/node-red/pull/4828>
>
> \- \[x\] Bugfix (non-breaking change which fixes an issue)
> \- \[\] New feature (non-…breaking change which adds functionality)
> 
> \## Proposed changes
> 
> Fixes #4827.
> 
> If the node in the selection is a group, must retrieve the nodes of that group.
> 
> \## Checklist
> 
> \- \[x\] I have read the \[contribution guidelines\](https://github.com/node-red/node-red/blob/master/CONTRIBUTING.md)
> \- \[\] For non-bugfix PRs, I have discussed this change on the forum/slack team.
> \- \[x\] I have run \`npm run test\` to verify the unit tests pass
> \- \[\] I have added suitable unit tests to cover the new/changed functionality

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [1 September 2024 17:42 UTC](https://discourse.nodered.org/t/right-click-to-disable-enable-group/90619/3 "2024-09-01T17:42:27Z")

</div>

Any ideas about question 2?

---

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [1 September 2024 17:58 UTC](https://discourse.nodered.org/t/right-click-to-disable-enable-group/90619/4 "2024-09-01T17:58:15Z")

</div>

It doesn't really make sense to put the enable/disable options in the group submenu because they are node operations. Even if I understand your suggestion, this submenu contains group operations (group/ungroup/merge).

`Select All` should normally select all nodes in the workspace.

It would be nice if the context menu could adapt itself depending on a node, a group... it would also allow developers to customize it but for that need to change its structure.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [1 September 2024 18:17 UTC](https://discourse.nodered.org/t/right-click-to-disable-enable-group/90619/5 "2024-09-01T18:17:21Z")

</div>

> [@GogoVega](#):
>
> It would be nice if the context menu could adapt itself depending on a node, a group... it would also allow developers to customize it but for that need to change its structure.

The right click menu is indeed context sensitive. You get a different range of options of you right click on the flow tab than on a node, a group etc.

> [@GogoVega](#):
>
> It doesn't really make sense to put the enable/disable options in the group submenu because they are node operations

I suppose it depends on whether you consider the group as an entity in itself.  
Example of an action on a group as a whole: Select a group and hit delete. it deletes the group _and all the nodes contained within it._  
You don't have to go into the Nodes submenu because you are deleting nodes.

I wish I could select a group and pick Disable to disable all the nodes contained within it.

It would make life easier when debugging or migrating complex flows to new servers or new dashboards.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [31 October 2024 18:17 UTC](https://discourse.nodered.org/t/right-click-to-disable-enable-group/90619/6 "2024-10-31T18:17:38Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
