summaryrefslogtreecommitdiff
path: root/client/js/controllers/status.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/js/controllers/status.js')
-rw-r--r--client/js/controllers/status.js20
1 files changed, 9 insertions, 11 deletions
diff --git a/client/js/controllers/status.js b/client/js/controllers/status.js
index 15850f4..c3e634b 100644
--- a/client/js/controllers/status.js
+++ b/client/js/controllers/status.js
@@ -6,16 +6,14 @@
* @param {$scope} $scope The $scope service from angular
* @param {Identity} The Identity service
*/
-mainApp.controller('statusCtrl', ['$scope','Identity', '$rootScope', function ($scope, Identity, $rootScope)
-{
+mainApp.controller('statusCtrl', ['$scope', 'Identity', '$rootScope', function ($scope, Identity, $rootScope)
+ {
+ // Give profile to model
+ $scope.profile = Identity.getProfile();
-
- // Give profile to model
- $scope.profile=Identity.getProfile();
-
- // Function to logout
- $scope.logout=function(){
- Identity.logout();
- };
+ // Function to logout
+ $scope.logout = function () {
+ Identity.logout();
+ };
-}]);
+ }]);