- π§πͺBelgium StryKaizer Belgium
Attached is a fix which opens both discard changes and revert to defaults in a dialog.
I added an extra patch for people who use gin/gin layout builder, which ensures the buttons are rendered nicely.
- Status changed to Needs review
7 months ago 2:28pm 5 April 2024 - π§πͺBelgium tim-diels Belgium π§πͺ
The patch works as expected.
But can we do the width of the modal different? I looked up in Drupal core and mostly 880 px is used.
The FieldUiLocalAction is using 85vw which seems much better to implement then hard pixels?The normal patch is probably what is needed and a follow up ticket will be needed in Gin Layout Builder to cover the classes on the button?
- Status changed to Needs work
7 months ago 2:31pm 5 April 2024 - π§πͺBelgium tim-diels Belgium π§πͺ
Still small nitpick:
+++ b/core/modules/layout_builder/src/Form/OverridesEntityForm.php @@ -193,21 +194,27 @@ protected function actions(array $form, FormStateInterface $form_state) { + $actions ['discard_changes'] = [ ... + $actions ['revert'] = [
There must be no space before the bracket.
- First commit to issue fork.
- π¨π¦Canada kalanh
The patch from #7 no longer applies, but I think this would be a sensible UX enhancement. I have pushed an issue fork and attached a patch for gin_lb users.
- Merge request !9183Issue #3223022 reroll of StryKaizer's "discard changes" dialog in the... β (Open) created by kalanh
- First commit to issue fork.
- π¨π¦Canada man-1982
Looks like MR ready to review!
Dear Colleagues please you take a look.
Thanks - Status changed to Needs review
3 months ago 6:03pm 22 August 2024 - π¨π¦Canada man-1982
I've prepared some proof that MR does work. I used clean installation Drupal 11.
thanks
Hi,
I've reviewed the MR !9183 on Drupal 11.x.Layout Discard changes opened in the dialog box.
- Status changed to Needs work
3 months ago 4:01pm 31 August 2024 - πΊπΈUnited States smustgrave
Just checking issue summary it appears to be incomplete, UI changes should be placed
Left some comments on the MR
- Status changed to Needs review
2 months ago 7:08am 8 September 2024 - Status changed to Needs work
2 months ago 2:37pm 8 September 2024 - πΊπΈUnited States smustgrave
If theyβre new functions being added type hints should be included. Unless itβs a base method that would require updating all spots.
- π¨π¦Canada man-1982
Hi @smustgrave!
Could you provide a couple examples or give me direction, where i can have a look and read about
type hints should be included
I didn't clear understand your message.
Thank you.
- Status changed to Needs review
about 2 months ago 5:18pm 17 September 2024 Reviewed latest MR ,it applies cleanly and MR resolves mentioned issue.
Drupal version 11.x-dev
1. Create a layout with the Layout Builder.
2. Click on the "Discard changes" button in the Layout Builder.
3. Before MR, it would redirect to /node/[nid]/layout/discard-changes to confirm the dialog
4. After applying MR is opens in dialogue box.
5. Attaching screenshot for before and after.
Issue can be moved forward.
RTBC +- Status changed to RTBC
about 2 months ago 9:55pm 18 September 2024 - π¨π¦Canada kalanh
I've attached the gin-lb version patch for d10.3:
The Needs Review Queue Bot β tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide β to find step-by-step guides for working with issues.
- πΊπΈUnited States smustgrave
smustgrave β changed the visibility of the branch 11.x to hidden.
- πΊπΈUnited States smustgrave
smustgrave β changed the visibility of the branch drupal-3223022-3223022-modal-discard-dialog to hidden.
- πΊπΈUnited States smustgrave
Rebased but hiding the patch as that triggered the bot.
- π¨π¦Canada man-1982
Hi gays,
i'de like to ask what we decided about patch?
Do we need more extra tests or works?it would be my pleasure to help with this one.
thanks