fix: show message if there are no permitted charts on a dashboard

This commit is contained in:
prssanna 2020-03-31 16:28:08 +05:30
parent d9f1a85d00
commit d0aa01367b

View file

@ -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 {