Browse Source

feat: add breadcrumbs in dashboard view

version-14
Summayya 3 years ago
parent
commit
12c7f2ae2d
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      frappe/core/page/dashboard_view/dashboard_view.js

+ 5
- 0
frappe/core/page/dashboard_view/dashboard_view.js 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(),


Loading…
Cancel
Save