diff options
Diffstat (limited to 'plugins/CoreHome/angularjs/reporting-menu/reportingmenu.controller.js')
-rw-r--r-- | plugins/CoreHome/angularjs/reporting-menu/reportingmenu.controller.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/CoreHome/angularjs/reporting-menu/reportingmenu.controller.js b/plugins/CoreHome/angularjs/reporting-menu/reportingmenu.controller.js index 1c94136827..d284034cd6 100644 --- a/plugins/CoreHome/angularjs/reporting-menu/reportingmenu.controller.js +++ b/plugins/CoreHome/angularjs/reporting-menu/reportingmenu.controller.js @@ -133,6 +133,12 @@ } } }); + if ('object' === typeof widgetsHelper && widgetsHelper.availableWidgets) { + // lets also update widgetslist so will be easier to update list of available widgets in dashboard selector + // immediately + delete widgetsHelper.availableWidgets; + widgetsHelper.getAvailableWidgets(); + } }); $rootScope.$on('$locationChangeSuccess', function () { |