Problem/Motivation

When you install content lock together with Lock layout builder the primary button will get disabled when you try to edit a page anyone else is editing.
Problem with Gin LB however is that the additional button added to by the module will not be disabled and it will keep on trying to submit the primary button.

It would be better that this button follows the look & feel of the disabled primary button.

Steps to reproduce

Have a Layout builder enabled content type with Gin LB.
Install content lock & Lock layout builder
Edit layout of a page with 2 different users so content lock gets triggered.
You'll see a disabled save button and an enabled save button. The enabled one is added by Gin LB.
See added screenshot

Proposed resolution

Check if the primary button is disabled, if so follow its behavior.

Issue fork gin_lb-3525977

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

kevinvb created an issue. See original summary.

kevinvb’s picture

Assigned: kevinvb » Unassigned
Status: Active » Needs review
StatusFileSize
new16.16 KB

Added MR which checks the state of the primary button

kevinvb’s picture

Also created MR towards 2.x

christian.wiedemann’s picture

I merged it to the 3.x branch

christian.wiedemann’s picture

Status: Needs review » Fixed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.