[FIX] website: do not activate megamenu snippet when translating

task-2810332

X-original-commit: 372909978ac8869ab440bbd06a625afd4dd255a0
Part-of: odoo/odoo#89071
This commit is contained in:
Nicolas Bayet
2022-04-20 09:33:00 +02:00
parent d8b742aa21
commit 23e81dec46
@@ -67,7 +67,11 @@ Wysiwyg.include({
// Then toggle the clicked one
toggleDropdown($toggle)
.then(dispose)
.then(() => this._toggleMegaMenu($toggle[0]))
.then(() => {
if (!this.options.enableTranslation) {
this._toggleMegaMenu($toggle[0]);
}
})
.then(() => this.odooEditor.observerActive());
});