From 73901757334d0f38a63fa2500a194db60071b56a Mon Sep 17 00:00:00 2001
From: Thomas Steur <tsteur@users.noreply.github.com>
Date: Wed, 14 Sep 2016 09:08:01 +1200
Subject: [PATCH] fix reset dashboard notification was shown multiple times
 under circumstances (#10496)

---
 plugins/Dashboard/angularjs/dashboard/dashboard.directive.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/plugins/Dashboard/angularjs/dashboard/dashboard.directive.js b/plugins/Dashboard/angularjs/dashboard/dashboard.directive.js
index 60031e80d3..3231d60a52 100644
--- a/plugins/Dashboard/angularjs/dashboard/dashboard.directive.js
+++ b/plugins/Dashboard/angularjs/dashboard/dashboard.directive.js
@@ -29,6 +29,7 @@
 
             widgetsHelper.getAvailableWidgets();
 
+            $('#dashboardWidgetsArea').off('dashboardempty', showEmptyDashboardNotification);
             $('#dashboardWidgetsArea')
                 .on('dashboardempty', showEmptyDashboardNotification)
                 .dashboard({
-- 
GitLab