Problem/Motivation
There are the things in the Add blocks page (Block library listing) which are block plugins. Those hold the description and the body. (for custom block, basic block type). Then there are other things on the Blocks admin listing. Those are block instances of those block plugins. The dropdown buttons on the blocks in the UI on the site, in place in the regions, have items in the dropbutton list (there are also items in the dropbutton list on the block admin list). Some of those items deal with the block plugin: edit, delete. Some deal with the block (block instance): configure.
There is no way to delete the block instance. It seems like the delete for the plugin is what deletes the block (instance). This is confusing. And dangerous.
Proposed resolution
Add a 'Delete block'
Remaining tasks
- Discuss. What are the things on the library listing called? Plugins? Block plugins? What can we call them in the UI? Block library items?
- Create initial patch to change the dropbutton items.
- more tasks to come later...
User interface changes
Yes. Adding a action to the dropbutton.
Before screenshot
Proposed after screenshot
API changes
No API changes.
Related Issues
- (very related) #1956496: inplace dropbutton on block instance needs to identify which action effect block (block instance) vs plugin (block library item)
- (very related) remove the 'Delete' (delete plugin) from the inplace edit dropbutton (issue needs to be opened)
- #1956448: use the block instance title on the block admin listing
- #1871746: Add block browser
- #1888702: Consider configuration selection instead of derivatives for most blocks
- #1535868: Change notice: Convert all blocks into plugins
Attachment | Size | Status | Test result | Operations |
---|---|---|---|---|
inplace_dropbutton.png | 47.04 KB | Ignored: Check issue status. | None | None |
delete_block.png | 51.08 KB | Ignored: Check issue status. | None | None |