diff options
| author | stefanorigano (SRI) <sri@odoo.com> | 2020-08-14 10:04:35 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2020-08-14 19:19:47 +0000 |
| commit | 95cbf79325606e8f8092f2103bd85ee98e57fd11 (patch) | |
| tree | ccc183e0892722645efbc3bd26fd66878686f5ee | |
| parent | 93176bf3d7a666f40ea41f25c9ac3c427d549997 (diff) | |
[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>
| -rw-r--r-- | addons/web_editor/static/src/js/editor/snippets.editor.js | 3 |
1 files changed, 2 insertions, 1 deletions
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); }, //-------------------------------------------------------------------------- |
