From 95cbf79325606e8f8092f2103bd85ee98e57fd11 Mon Sep 17 00:00:00 2001 From: "stefanorigano (SRI)" Date: Fri, 14 Aug 2020 10:04:35 +0000 Subject: [PATCH] [FIX] web_editor: properly toggle the disabled prop of the "Style" tab Part of https://github.com/odoo/odoo/pull/55959 task-2157252 Co-authored-by: qsm-odoo --- addons/web_editor/static/src/js/editor/snippets.editor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/js/editor/snippets.editor.js b/addons/web_editor/static/src/js/editor/snippets.editor.js index 6e24b5e706a..d5949a41aa8 100644 --- a/addons/web_editor/static/src/js/editor/snippets.editor.js +++ b/addons/web_editor/static/src/js/editor/snippets.editor.js @@ -1977,7 +1977,8 @@ var SnippetsMenu = Widget.extend({ this.customizePanel.classList.toggle('d-none', tab === this.tabs.BLOCKS); this.$('.o_we_add_snippet_btn').toggleClass('active', tab === this.tabs.BLOCKS); - this.$('.o_we_customize_snippet_btn').toggleClass('active', tab === this.tabs.OPTIONS); + this.$('.o_we_customize_snippet_btn').toggleClass('active', tab === this.tabs.OPTIONS) + .prop('disabled', tab !== this.tabs.OPTIONS); }, //--------------------------------------------------------------------------