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

Feature/1414 drawer static button bug #1418

Merged
merged 3 commits into from
Oct 17, 2023

Conversation

OlofSvahnVbg
Copy link
Collaborator

closes #1414

@OlofSvahnVbg OlofSvahnVbg added this to the 3.x milestone Oct 13, 2023
@OlofSvahnVbg OlofSvahnVbg self-assigned this Oct 13, 2023
@jesade-vbg jesade-vbg merged commit 1d68855 into develop Oct 17, 2023
@jesade-vbg jesade-vbg deleted the feature/1414-drawer-static-button-bug branch October 17, 2023 04:52
// We want to check if there's only one visible drawerButton
const isOnlyOneButtonVisible =
drawerButtons.length === 1 ||
(drawerButtons.length === 2 && isHiddenPluginPresent);
Copy link
Member

Choose a reason for hiding this comment

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

Hi! This slipped my attention prior the merge, but anyway: how about a situation which more than 2 drawer buttons? I know that we currently only have two of them, but since any plugin can add such a button (check out the Dummy plugin…) it's not impossible to end up with 3 or more buttons in the future. Have you checked for compatibility in such a situation? Thanks! /J

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hello! I think in a situation where we have 2 or more visible buttons (and if you have 3 buttons they probably are all visible) the buttons should not be removed if the drawer is static. This logic only ensures that if there is one button, it doesn't show, OR if there are two buttons (one visible and one invisible) they dont show.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

But might be an idea to change logic anyways in the event of something like that :)

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

Successfully merging this pull request may close these issues.

3 participants