Skip to content
Snippets Groups Projects
Commit a80314c6 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Fixed opening/closing of menu item

parent 66e4339e
Branches
Tags
No related merge requests found
......@@ -146,10 +146,7 @@ export default {
this.$refs.Sync.isSyncOnewayNeeded(loggedUser);
localStorage.setItem(CommonUtil.CONST_STORAGE_USER_DETAIL,JSON.stringify(loggedUser));
this.getUserFromStorage();
//this.$router.push({path:'/'});
//this.$router.go();
$('.offcanvas-collapse').removeClass('open');
});
}
......@@ -160,8 +157,7 @@ export default {
this.$root.sharedState.uuid = ''; // remove global uuid for other (e.g. menu items etc)
localStorage.removeItem(CommonUtil.CONST_STORAGE_UUID); // remove uuid from storage
this.$emit(CommonUtil.CONST_EVENT_LOGIN_USER_DETAIL,'');
this.$router.push({path:'/'});
this.$router.go();
$('.offcanvas-collapse').removeClass('open');
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment