Fix login

This commit is contained in:
Peter Maquiran
2021-07-27 10:28:09 +01:00
parent b23fdf03ee
commit 3f11777d74
2 changed files with 7 additions and 2 deletions
-1
View File
@@ -21,7 +21,6 @@
<div>
<!-- Calendar is here -->
<div class="calendar-segment-{{profile}}" [class.calendar-segment-pr-force]="loggeduser.Profile =='PR'">
{{profile}} {{ loggeduser.Profile }}
<div class="calendar-container" [style.height]="calendarHeight">
<ion-row class="ion-justify-content-between calendar-tool-tip">
@@ -115,7 +115,13 @@ export class ProfileComponent implements OnInit {
logout() {
// clear local storage
window.localStorage.clear();
window.location.pathname = '/'
setTimeout(()=>{
window.location.pathname = '/'
location.reload();
}, 1000)
}
LoginPreferenceMethod(type: string) {