|
|
@@ -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(), |
|
|
|