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): allow non-searchable entries #835

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

smbea
Copy link
Contributor

@smbea smbea commented Dec 4, 2023

Closes #834

@bpmn-io-tasks bpmn-io-tasks bot added the needs review Review pending label Dec 4, 2023
@@ -77,6 +77,10 @@ export default function PopupMenuComponent(props) {
return (entry.rank || 0) >= 0;
}

if (entry.searchable === false) {
return 0;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return 0;
return false;

Let's keep this interface uniform. We always return a boolean.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, got momentarily confused with the 0 from above. Updated

@smbea smbea force-pushed the non-serachable-popup-entries branch from de4c598 to fa6486e Compare December 5, 2023 11:10
@smbea smbea merged commit cd6fdbc into develop Dec 6, 2023
9 of 12 checks passed
@smbea smbea deleted the non-serachable-popup-entries branch December 6, 2023 13:03
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Dec 6, 2023
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.

Allow non-searchable entries in popup menu
2 participants