Allow for XHR for preload

master
Ben Grabau 2 years ago
parent 0a373a36b3
commit 96b737c7f6

@ -43,7 +43,7 @@ app.controller('Servers', function ($scope, $window, $http) {
} }
$scope.serverTotals = (type) => { $scope.serverTotals = (type) => {
localStorage.setItem("servers", angular.toJson($scope.servers)); localStorage.setItem("servers", angular.toJson($scope.servers));
return $scope.servers.reduce(function (a, b) { return $scope.servers?.reduce(function (a, b) {
return a + (b?.[type] ?? 0); return a + (b?.[type] ?? 0);
}, 0); }, 0);
} }

Loading…
Cancel
Save