From d0aa01367b947b7dea3fad18ec2bc80b6b3cdea2 Mon Sep 17 00:00:00 2001 From: prssanna Date: Tue, 31 Mar 2020 16:28:08 +0530 Subject: [PATCH] fix: show message if there are no permitted charts on a dashboard --- frappe/core/page/dashboard/dashboard.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frappe/core/page/dashboard/dashboard.js b/frappe/core/page/dashboard/dashboard.js index 92e7e48a8c..8705804014 100644 --- a/frappe/core/page/dashboard/dashboard.js +++ b/frappe/core/page/dashboard/dashboard.js @@ -77,6 +77,9 @@ class Dashboard { refresh() { this.get_permitted_dashboard_charts().then(charts => { + if (!charts.length) { + frappe.msgprint(__('No Permitted Charts on this Dashboard'), __('No Permitted Charts')) + } this.charts = charts .map(chart => { return {