Skip to content

Commit 6e53f4b

Browse files
committed
[IMP] awesome_dashboard: make the dashboard extensible
1 parent 3416192 commit 6e53f4b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

awesome_dashboard/static/src/dashboard/dashboard.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ class AwesomeDashboard extends Component {
1919
this.statistics = useService("awesome_dashboard.statistics");
2020
this.state = useState({stats: this.statistics});
2121

22-
this.items = items
22+
for(let item of items) {
23+
registry.category("awesome_dashboard").add(item.id, item);
24+
}
25+
this.items = registry.category("awesome_dashboard").getAll();
2326
}
2427

2528
openCustomers() {

0 commit comments

Comments
 (0)