mirror of
https://github.com/arnaucube/commonroutesApp.git
synced 2026-02-07 03:26:44 +01:00
user travels visualization and other updates
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
angular.module('app.menu', ['pascalprecht.translate'])
|
||||
|
||||
|
||||
.controller('MenuCtrl', function($scope) {
|
||||
.controller('MenuCtrl', function($scope, $window) {
|
||||
if (localStorage.getItem("cim_app_userdata")) {
|
||||
$scope.storageuser = JSON.parse(localStorage.getItem("cim_app_userdata"));
|
||||
console.log($scope.storageuser);
|
||||
@@ -10,6 +10,6 @@ angular.module('app.menu', ['pascalprecht.translate'])
|
||||
$scope.logout = function() {
|
||||
localStorage.removeItem("cim_app_token");
|
||||
localStorage.removeItem("cim_app_userdata");
|
||||
window.location = "/";
|
||||
$window.location.reload(true);
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user