Skip to content

Commit

Permalink
[IMP] web_editor: adds a remove button next to the shape selector
Browse files Browse the repository at this point in the history
This commit aims to make it easier to remove a shape over a background
image.

Before this commit, we could only remove a shape by clicking on the
"shape" button in the background options (it was not easy to find
quickly), but with this commit we can now also remove it thanks to a
"remove" button that has been added next to the shape selector.

task-2827802

closes odoo#96788

Signed-off-by: Quentin Smetz (qsm) <[email protected]>
  • Loading branch information
bvr-odoo authored and qsm-odoo committed Aug 17, 2022
1 parent 4123505 commit 6bfca9f
Show file tree
Hide file tree
Showing 2 changed files with 131 additions and 139 deletions.
9 changes: 0 additions & 9 deletions addons/web_editor/static/src/js/editor/snippets.options.js
Original file line number Diff line number Diff line change
Expand Up @@ -6246,15 +6246,6 @@ registry.BackgroundShape = SnippetOptionWidget.extend({
});
return uiFragment;
},
/**
* @override
*/
async _computeWidgetVisibility(widgetName, params) {
if (widgetName === 'shape_none_opt') {
return false;
}
return this._super(...arguments);
},
/**
* Flips the shape on its x/y axis.
*
Expand Down
Loading

0 comments on commit 6bfca9f

Please sign in to comment.