improve dashboard

This commit is contained in:
tdurieux
2021-03-23 08:39:28 +01:00
parent 3f083d451d
commit 83dd070843
4 changed files with 38 additions and 12 deletions

View File

@@ -61,6 +61,19 @@ angular
return result;
};
})
.filter("title", function() {
return function(str) {
if (!str) return str;
str = str.toLowerCase();
var words = str.split(" ");
var capitalized = words.map(function(word) {
return word.charAt(0).toUpperCase() + word.substring(1, word.length);
});
return capitalized.join(" ");
};
})
.controller("mainController", function($scope, $http, $location) {
$scope.title = "Main";
$scope.user = { status: "connection" };