[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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user