[IMP] web: highlight searchValue in CommandItem

With this commit, when you perform a search in the command palette,
the part of the commandItem's name that matches the searchValue will
be highlighted.

closes odoo/odoo#82407

Task-id: 2741837
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
FrancoisGe
2022-01-21 09:40:50 +00:00
parent f052624c97
commit 6daa9188cb
8 changed files with 152 additions and 33 deletions
@@ -8,7 +8,7 @@ const { Component, xml } = owl;
class DialogCommand extends Component {}
DialogCommand.template = xml`
<div class="o_command_default">
<span t-esc="props.name"/>
<t t-slot="name"/>
<span t-if="props.email" t-esc="props.email"/>
</div>
`;