From b5a5b7b912e6052485e6ba3a437dc20f94b324b5 Mon Sep 17 00:00:00 2001 From: utkarshcmu Date: Thu, 4 Feb 2016 13:34:23 -0800 Subject: [PATCH] Removed totalStats from PR --- .../app/features/dashboard/dashboardCtrl.js | 20 ----------- .../features/dashboard/partials/settings.html | 35 ------------------- 2 files changed, 55 deletions(-) diff --git a/public/app/features/dashboard/dashboardCtrl.js b/public/app/features/dashboard/dashboardCtrl.js index cc305e4aed4..ea0d91019b8 100644 --- a/public/app/features/dashboard/dashboardCtrl.js +++ b/public/app/features/dashboard/dashboardCtrl.js @@ -57,7 +57,6 @@ function (angular, $, config, moment) { dashboardKeybindings.shortcuts($scope); - $scope.evaluateTotalStats(); $scope.updateSubmenuVisibility(); $scope.setWindowTitleAndTheme(); @@ -68,25 +67,6 @@ function (angular, $, config, moment) { }); }; - $scope.evaluateTotalStats = function() { - $scope.dashboard.totalRows = 0; - $scope.dashboard.totalPanels = 0; - $scope.dashboard.totalQueries = 0; - if ($scope.dashboard.rows) { - $scope.dashboard.totalRows = $scope.dashboard.rows.length; - for (var i=0; i<$scope.dashboard.rows.length; i++) { - if ($scope.dashboard.rows[i].panels) { - $scope.dashboard.totalPanels += $scope.dashboard.rows[i].panels.length; - for (var j=0; j<$scope.dashboard.rows[i].panels.length; j++) { - if ($scope.dashboard.rows[i].panels[j].targets) { - $scope.dashboard.totalQueries += $scope.dashboard.rows[i].panels[j].targets.length; - } - } - } - } - } - }; - $scope.updateSubmenuVisibility = function() { $scope.submenuEnabled = $scope.dashboard.isSubmenuFeaturesEnabled(); }; diff --git a/public/app/features/dashboard/partials/settings.html b/public/app/features/dashboard/partials/settings.html index d27d3322692..7af2abfe076 100644 --- a/public/app/features/dashboard/partials/settings.html +++ b/public/app/features/dashboard/partials/settings.html @@ -162,41 +162,6 @@
- -
-
-
    -
  • - Total Rows: -
  • -
  • - {{dashboard.totalRows}} -
  • -
-
-
-
-
    -
  • - Total Panels: -
  • -
  • - {{dashboard.totalPanels}} -
  • -
-
-
-
-
    -
  • - Total Queries: -
  • -
  • - {{dashboard.totalQueries}} -
  • -
-
-