Added logout
This commit is contained in:
parent
3852d6aab7
commit
734ca65231
@ -35,6 +35,11 @@
|
|||||||
</ion-label>
|
</ion-label>
|
||||||
<ion-toggle (ionChange)="toggleDark()" id="themeToggle" slot="end"></ion-toggle>
|
<ion-toggle (ionChange)="toggleDark()" id="themeToggle" slot="end"></ion-toggle>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
<ion-item button slot="end" lines="full" (click)="logOut()">
|
||||||
|
<ion-icon name="exit" slot="start"></ion-icon>
|
||||||
|
<ion-label>Log out</ion-label>
|
||||||
|
|
||||||
|
</ion-item>
|
||||||
</ion-footer>
|
</ion-footer>
|
||||||
</ion-menu>
|
</ion-menu>
|
||||||
|
|
||||||
|
@ -181,4 +181,8 @@ export class AppComponent implements OnInit {
|
|||||||
console.log('toggel Dark mode');
|
console.log('toggel Dark mode');
|
||||||
document.body.classList.toggle('dark', this.darkMode);
|
document.body.classList.toggle('dark', this.darkMode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logOut() {
|
||||||
|
window.location = '/auth/logout';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user