- 🇦🇺Australia jnlar Sydney, Australia
Hi, thought i'd give this a try. Please see attached patch + screenshots
- Status changed to Needs review
over 1 year ago 11:23am 2 October 2023 - Status changed to Needs work
over 1 year ago 4:07pm 2 October 2023 - 🇧🇷Brazil renatog Campinas
Awesome job @jnlar, thank you so much
I'm marking as "Needs Works" because if we merge that today, will appear this new button in all modals of 2k+ sites
So before merging that we need 2 thinks:
- Create an option inside of Modal CMS for Enable Modal Maximization (Default "true")
- Create a hook_update_N(): Load all existent Modals and set Enable Modal Maximization as
false
With that it won't impact the existent sites, but if they want to use they'll be able to enable that on Modal entity via CMS. Is that makes sense?
P.S. if prefer we can create a separated issues for this
- 🇦🇺Australia jnlar Sydney, Australia
Thanks @renatog,
I'm not too sure i'm following. The maximization feature is op-in and disabled by default, in
ModalForm.php
:+ $enableMaximizeButton = FALSE; + + if (!empty($modal->getEnableMaximizeButton())) { + $enableMaximizeButton = $modal->getEnableMaximizeButton(); + }
Pre-existing/new modals will need to check 'Enable Maximize Button' and then save the edit modal form in order to have the button display in their modal.
I think the
enable_modal_header
dependency is sensible as it follows the same pattern as other buttons (close button) placed in the header region. - 🇧🇷Brazil renatog Campinas
The maximization feature is op-in and disabled by default, in ModalForm.php
Pre-existing/new modals will need to check 'Enable Maximize Button' and then save the edit modal form in order to have the button display in their modal.That's perfect!
With that solution it won't impact the existent sites but the feature will be available and we'll let them know on release notesI think the enable_modal_header dependency is sensible as it follows the same pattern as other buttons (close button) placed in the header region.
Agreed!
Since this button is located on Modal Header I think makes sense to include there - 🇦🇺Australia jnlar Sydney, Australia
awesome :^) I've created an issue fork & MR, thanks @renatog
- Status changed to Needs review
over 1 year ago 9:16pm 4 October 2023 - 🇧🇷Brazil renatog Campinas
Woow, thank you so much for this amazing contribution @jnlar
On my first look in the MR, seems good
I'm moving to "Needs Review" just to manual tests
- 🇧🇷Brazil renatog Campinas
Tested and worked fine for me
Thank you so much
-
renatog →
committed bc2546e6 on 5.0.x authored by
jnlar →
Issue #3325782 by jnlar, renatog: Create a way to allow Maximize Modal
-
renatog →
committed bc2546e6 on 5.0.x authored by
jnlar →
- Status changed to Fixed
9 months ago 3:35am 1 July 2024 Automatically closed - issue fixed for 2 weeks with no activity.