mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] devtools: highlight searched components
This commit makes the component search more interactive by highlighting the component search results on the page when navigating through them.
This commit is contained in:
committed by
Géry Debongnie
parent
32e4565131
commit
610c272104
@@ -333,6 +333,7 @@ export const store = reactive({
|
|||||||
setSearchIndex(index) {
|
setSearchIndex(index) {
|
||||||
this.componentSearch.searchIndex = index;
|
this.componentSearch.searchIndex = index;
|
||||||
this.selectComponent(this.componentSearch.searchResults[index]);
|
this.selectComponent(this.componentSearch.searchResults[index]);
|
||||||
|
this.highlightComponent(this.componentSearch.searchResults[index]);
|
||||||
},
|
},
|
||||||
|
|
||||||
// Replace the (...) content of a getter with the value returned by the corresponding get method
|
// Replace the (...) content of a getter with the value returned by the corresponding get method
|
||||||
|
|||||||
Reference in New Issue
Block a user