Problem/Motivation
As I was editing a block in the layout builder, I wondered where the warning text was visible. Then I saw it at the top of the modal.
As a contributor, I guess (s)he won't know the text exists as (s)he didn't configure the module by him(her)-self.
I propose to make this message visible as a warning text, to prevent the user from modifying or deleting the block.
Steps to reproduce
- Migrate Drupal from 10.6 to 11.3.9
- Add the layout_builder_reusable_blocks module with composer
- enable the layout_builder_reusable_blocks module
- enable the dblog module
- in the configuration menu, configure the layout_builder_reusable_blocks module as following
- Save the configuration
- Go to an existing node, in layout mode
- Choose an existing block, contextual menu > configure
- check "Show warning message when editing reusable blocks"
- check "Allow editing reusable blocks"
- check "Make all blocks reusable by default"
Result: the message is not layed out.
Proposed resolution
Update the form message as a warning.
| Comment | File | Size | Author |
|---|---|---|---|
| warning_text_as_warning.png | 7.69 KB | fabrondeau | |
| warning_text_before.png | 6.4 KB | fabrondeau |
Issue fork layout_builder_reusable_blocks-3590826
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