mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] devtools: highlight component on select
Small imp to highlight a component when it gets selected in the tree to provide better visual feedback to the user when he is using arrow keys navigation.
This commit is contained in:
committed by
Géry Debongnie
parent
166cada8ff
commit
db3499f5e5
@@ -147,6 +147,7 @@ export const store = reactive({
|
|||||||
}
|
}
|
||||||
component.selected = true;
|
component.selected = true;
|
||||||
highlightChildren(component);
|
highlightChildren(component);
|
||||||
|
this.highlightComponent(path);
|
||||||
const details = await evalFunctionInWindow(
|
const details = await evalFunctionInWindow(
|
||||||
"getComponentDetails",
|
"getComponentDetails",
|
||||||
[component.path],
|
[component.path],
|
||||||
@@ -334,7 +335,6 @@ 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