[FIX] project: prevent settings pane toggle from disappearing

Previously the settings pane toggle (on the project's kanban view) would
disappear when the cursor would not be hovering the kanban record.

Closes: odoo/odoo#74822

Task ID: 2618321
This commit is contained in:
William Braeckman
2021-08-09 10:32:22 +00:00
parent 7c23d3b247
commit d793ff5493
@@ -23,6 +23,20 @@ const ProjectProjectKanbanRecord = KanbanRecord.extend({
this._super.apply(this, arguments);
}
},
/**
* @override
* @private
*/
_onManageTogglerClicked: function (event) {
this._super.apply(this, arguments);
const thisSettingToggle = this.el.querySelector('.o_kanban_manage_toggle_button');
this.el.parentNode.querySelectorAll('.o_kanban_manage_toggle_button.show').forEach(el => {
if (el !== thisSettingToggle) {
el.classList.remove('show');
}
});
thisSettingToggle.classList.toggle('show');
},
});
const ProjectProjectKanbanRenderer = KanbanRenderer.extend({