Skip to content
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

feat(popup-menu): add ability to refresh without reopening #860

Merged
merged 2 commits into from
Feb 21, 2024

Conversation

philippfromme
Copy link
Contributor

Adds a refresh method to the popup menu. Allows updating the popup menu's entries without having to reopen it.

brave_BmhqixQCpv


Closes #804

/**
* Refresh the popup menu entries without changing the target or position.
*/
PopupMenu.prototype.refresh = function() {
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if we can we consolidate existing behavior, i.e. call refresh here?

Looks good otherwise.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense, I'll add that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. ✅

@philippfromme philippfromme requested a review from nikku February 21, 2024 14:29
@nikku nikku merged commit 3b86833 into develop Feb 21, 2024
12 checks passed
@nikku nikku deleted the popup-menu-refresh branch February 21, 2024 15:02
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Feb 21, 2024
@nikku
Copy link
Member

nikku commented Feb 21, 2024

Will be released via #861.

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.

Add a refresh function to the popupMenu object
2 participants