diff --git a/frappe/core/page/dashboard_view/dashboard_view.js b/frappe/core/page/dashboard_view/dashboard_view.js index 0ee697dfc1..5b53970e79 100644 --- a/frappe/core/page/dashboard_view/dashboard_view.js +++ b/frappe/core/page/dashboard_view/dashboard_view.js @@ -20,7 +20,7 @@ frappe.pages["dashboard-view"].on_page_load = function (wrapper) { class Dashboard { constructor(wrapper) { this.wrapper = $(wrapper); - $(`
+ $(`
`).appendTo(this.wrapper.find(".page-content").empty()); this.container = this.wrapper.find(".dashboard-graph"); diff --git a/frappe/public/js/frappe/ui/sidebar.html b/frappe/public/js/frappe/ui/sidebar.html index 5892dd185f..3e642be726 100644 --- a/frappe/public/js/frappe/ui/sidebar.html +++ b/frappe/public/js/frappe/ui/sidebar.html @@ -31,7 +31,12 @@
- + +
diff --git a/frappe/public/js/frappe/ui/sidebar.js b/frappe/public/js/frappe/ui/sidebar.js index 229c8450c1..3b90e63d9a 100644 --- a/frappe/public/js/frappe/ui/sidebar.js +++ b/frappe/public/js/frappe/ui/sidebar.js @@ -126,15 +126,17 @@ frappe.ui.Sidebar = class Sidebar { } set_current_app(app) { - if (frappe.current_app === app) return; - frappe.current_app = app; + let app_data = frappe.boot.app_data_map[app]; this.wrapper .find(".app-switcher-dropdown .sidebar-item-icon img") - .attr("src", frappe.boot.app_data_map[frappe.current_app].app_logo_url); - this.wrapper - .find(".app-switcher-dropdown .sidebar-item-label") - .html(frappe.boot.app_data_map[frappe.current_app].app_title); + .attr("src", app_data.app_logo_url); + this.wrapper.find(".app-switcher-dropdown .sidebar-item-label").html(app_data.app_title); + + $(".navbar-brand .app-logo").attr("src", app_data.app_logo_url); + + if (frappe.current_app === app) return; + frappe.current_app = app; // re-render the sidebar this.make_sidebar(); diff --git a/frappe/public/js/frappe/ui/toolbar/navbar.html b/frappe/public/js/frappe/ui/toolbar/navbar.html index 13ae8339a8..3b056c91ec 100644 --- a/frappe/public/js/frappe/ui/toolbar/navbar.html +++ b/frappe/public/js/frappe/ui/toolbar/navbar.html @@ -1,13 +1,13 @@