Skip to content

fix(append-menu): use rule to decide whether to show context pad entry #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

philippfromme
Copy link
Contributor

@philippfromme philippfromme commented Mar 7, 2024

  • rule is already being used to decide whether to add popup menu entries
  • prevents context pad entry to be shown because other providers added popup menu entries

Related to https://github.com/camunda/web-modeler/issues/8482

* rule is already being used to decide whether to add popup menu entries

Related to camunda/web-modeler#8482
@bpmn-io-tasks bpmn-io-tasks bot added the needs review Review pending label Mar 7, 2024
@philippfromme philippfromme requested a review from barmac March 7, 2024 15:45
@philippfromme philippfromme merged commit 83fa405 into main Mar 11, 2024
@philippfromme philippfromme deleted the fix-append branch March 11, 2024 08:46
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Mar 11, 2024
const getAppendMenuPosition = this._getAppendMenuPosition.bind(this);

if (!popupMenu.isEmpty(element, 'bpmn-append')) {
if (rules.allowed('shape.append', { element })) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants