system: setError is not defined

This commit is contained in:
Girish Ramakrishnan
2020-03-31 18:39:29 -07:00
parent 9b1f0e394a
commit 7d52be6e99
4 changed files with 14 additions and 2 deletions

View File

@@ -11,6 +11,11 @@ angular.module('Application').controller('SystemController', ['$scope', '$locati
$scope.services = [];
$scope.disks = [];
$scope.memory = null;
$scope.errorMessage = '';
$scope.setError = function (context, error) {
$scope.errorMessage = 'Error loading ' + context + ' : ' + error.message;
};
// http://stackoverflow.com/questions/1484506/random-color-generator-in-javascript
function getRandomColor() {