summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js
diff options
context:
space:
mode:
authorAntoine Guenet <age@odoo.com>2019-01-28 10:35:06 +0000
committerAntoine Guenet <age@odoo.com>2019-01-29 07:54:58 +0000
commita27837a0004dcf5fd412bc36b2e7a28a39f8291d (patch)
tree734b166149409e1ed887944ddf44474296f81fa5 /addons/web_editor/static/src/js
parent0598d975dcdc2ec87b54733eece5796fdef3d5fc (diff)
[FIX] web_editor: properly disable the toolbar on snippet removal
Update editor toolbar on each change to properly disable it when needed closes odoo/odoo#30594
Diffstat (limited to 'addons/web_editor/static/src/js')
-rw-r--r--addons/web_editor/static/src/js/wysiwyg_snippets/wysiwyg_snippets.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/wysiwyg_snippets/wysiwyg_snippets.js b/addons/web_editor/static/src/js/wysiwyg_snippets/wysiwyg_snippets.js
index d1dc29ca7b1..0f411343486 100644
--- a/addons/web_editor/static/src/js/wysiwyg_snippets/wysiwyg_snippets.js
+++ b/addons/web_editor/static/src/js/wysiwyg_snippets/wysiwyg_snippets.js
@@ -150,6 +150,7 @@ Wysiwyg.include({
if (this.snippets) {
this.snippets.updateCurrentSnippetEditorOverlay();
}
+ this._summernote.invoke('toolbar.update', true);
this._super.apply(this, arguments);
},
/**