[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 <qsm@odoo.com>
This commit is contained in:
stefanorigano (SRI)
2020-08-14 19:19:47 +00:00
committed by qsm-odoo
co-authored by qsm-odoo
parent 93176bf3d7
commit 95cbf79325
@@ -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);
},
//--------------------------------------------------------------------------