summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/editor/snippets.options.js
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2020-08-17 09:22:58 +0000
committerqsm-odoo <qsm@odoo.com>2020-08-17 09:31:58 +0000
commit7ef484377a493ebe558242480d0da6b542d6c247 (patch)
treef0eb954297bf8c64b4802afb3ddd1456544744d3 /addons/web_editor/static/src/js/editor/snippets.options.js
parent75b8e39bb26d9c459307f0a00d2b2e598bbb38a0 (diff)
[IMP] web_editor: add delete button on snippet overlay
This commit adds a trash icon on the snippet overlay to delete the snippet without using the left panel button. task-2314805 closes odoo/odoo#55612 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web_editor/static/src/js/editor/snippets.options.js')
-rw-r--r--addons/web_editor/static/src/js/editor/snippets.options.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/editor/snippets.options.js b/addons/web_editor/static/src/js/editor/snippets.options.js
index 4ee4dad1293..2aca673d887 100644
--- a/addons/web_editor/static/src/js/editor/snippets.options.js
+++ b/addons/web_editor/static/src/js/editor/snippets.options.js
@@ -1740,6 +1740,12 @@ const SnippetOptionWidget = Widget.extend({
* @type {boolean}
*/
isTopOption: false,
+ /**
+ * Forces the target to not be possible to remove.
+ *
+ * @type {boolean}
+ */
+ forceNoDeleteButton: false,
/**
* The option `$el` is supposed to be the associated DOM UI element.