Added logout

This commit is contained in:
Thomas Atkins 2020-02-08 23:54:33 -06:00
parent 3852d6aab7
commit 734ca65231
2 changed files with 9 additions and 0 deletions

View File

@ -35,6 +35,11 @@
</ion-label>
<ion-toggle (ionChange)="toggleDark()" id="themeToggle" slot="end"></ion-toggle>
</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-menu>

View File

@ -181,4 +181,8 @@ export class AppComponent implements OnInit {
console.log('toggel Dark mode');
document.body.classList.toggle('dark', this.darkMode);
}
logOut() {
window.location = '/auth/logout';
}
}