fix: show message if there are no permitted charts on a dashboard
This commit is contained in:
parent
d9f1a85d00
commit
d0aa01367b
1 changed files with 3 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue