Support content lock or any other module that could set the primary save button with disabled attribute

Created on 22 May 2025, 5 months ago

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.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇧🇪Belgium kevinvb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024