feat: add breadcrumbs in dashboard view
This commit is contained in:
parent
7d5465b2e3
commit
12c7f2ae2d
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue