Skip to content

Commit 82c0d40

Browse files
committed
[IMP] awesome_dashboard: move buttons into layout button bar
1 parent 9f7c018 commit 82c0d40

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

awesome_dashboard/static/src/dashboard/dashboard.xml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22
<templates xml:space="preserve">
33

44
<t t-name="awesome_dashboard.awesome_dashboard">
5-
<button class="btn btn-primary" t-on-click="() => this.openPartners()">
6-
Customers
7-
</button>
8-
<button class="btn btn-primary" t-on-click="() => this.openLeads()">
9-
Leads
10-
</button>
115
<Layout className="'o_dashboard h-100'" display="{controlPanel: {} }">
6+
<t t-set-slot="layout-buttons">
7+
<button class="btn btn-primary" t-on-click="() => this.openPartners()">
8+
Customers
9+
</button>
10+
<button class="btn btn-primary" t-on-click="() => this.openLeads()">
11+
Leads
12+
</button>
13+
</t>
1214
<t t-foreach="items" t-as="item" t-key="item.id">
1315
<DashboardItem size="item.size">
1416
<t t-set="itemProp" t-value="item.props ? item.props(this.stats) : {'data': this.stats}"/>

0 commit comments

Comments
 (0)