Revert "Fix refresh on system & sensors overview pages"
This reverts commit 23217dae2bdc8e9bd6b3f20a395d1892382b0682.
https://gerrit.openbmc-project.xyz/#/c/10063/ refreshes all
pages so individual refresh functions are no longer needed
Change-Id: I52151ba0e356f000324538e4b5eac6c9846c2eb3
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/app/server-health/controllers/sensors-overview-controller.js b/app/server-health/controllers/sensors-overview-controller.js
index 0a9d0d2..04502ca 100644
--- a/app/server-health/controllers/sensors-overview-controller.js
+++ b/app/server-health/controllers/sensors-overview-controller.js
@@ -12,14 +12,13 @@
angular
.module('app.overview')
.controller('sensorsOverviewController', [
- '$rootScope',
'$scope',
'$log',
'$window',
'APIUtils',
'dataService',
'Constants',
- function($rootScope, $scope, $log, $window, APIUtils, dataService, Constants){
+ function($scope, $log, $window, APIUtils, dataService, Constants){
$scope.dataService = dataService;
$scope.dropdown_selected = false;
@@ -134,16 +133,8 @@
};
$scope.loadSensorData();
-
- var refreshDataListener = $rootScope.$on('refresh-data', function(event, args) {
- $scope.loadSensorData();
- });
-
- $scope.$on('$destroy', function() {
- refreshDataListener();
- });
}
]
);
-})(angular);
+})(angular);
\ No newline at end of file