feat: add breadcrumbs in dashboard view

This commit is contained in:
Summayya 2022-02-02 11:47:50 +05:30
parent 7d5465b2e3
commit 12c7f2ae2d

View file

@ -30,6 +30,7 @@ class Dashboard {
show() {
this.route = frappe.get_route();
this.set_breadcrumbs();
if (this.route.length > 1) {
// from route
this.show_dashboard(this.route.slice(-1)[0]);
@ -75,6 +76,10 @@ class Dashboard {
frappe.last_dashboard = current_dashboard_name;
}
set_breadcrumbs() {
frappe.breadcrumbs.add("Desk", "Dashboard")
}
refresh() {
frappe.run_serially([
() => this.render_cards(),