From 884ef9f7ee345ab1e940dbf88f4432b7e10f36e3 Mon Sep 17 00:00:00 2001 From: Julien Mougenot Date: Thu, 4 Jun 2020 08:06:08 +0000 Subject: [REF] web: force dropdown menu icon through getter Before this ref, the dropdown menu got his icon directly from his props. This means that any inheriting class had either to define its icon with the 'default_props' key or to have its parent giving it in the props. Now, the icon is retrieved from the props via a getter (same as title and items) and can be overridden to force a fixed icon on the class. --- addons/web/static/src/js/control_panel/search_utils.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'addons/web/static/src/js/control_panel/search_utils.js') diff --git a/addons/web/static/src/js/control_panel/search_utils.js b/addons/web/static/src/js/control_panel/search_utils.js index da886004669..3a605faa2b8 100644 --- a/addons/web/static/src/js/control_panel/search_utils.js +++ b/addons/web/static/src/js/control_panel/search_utils.js @@ -136,10 +136,10 @@ odoo.define('web.searchUtils', function (require) { // Search bar const FACET_ICONS = { - filter: 'fa-filter', - groupBy: 'fa-bars', - favorite: 'fa-star', - timeRange: 'fa-calendar', + filter: 'fa fa-filter', + groupBy: 'fa fa-bars', + favorite: 'fa fa-star', + timeRange: 'fa fa-calendar', }; return { -- cgit v1.2.3