You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
652 B
HTML
28 lines
652 B
HTML
<!-- display login and register buttons if user is logged in -->
|
|
<ion-item-group
|
|
*ngIf=" !( auth.currentUser$ | async ) ">
|
|
<ion-button
|
|
color="secondary"
|
|
(click)="presentRegister()">
|
|
Register
|
|
</ion-button>
|
|
<ion-button
|
|
(click)="presentLogin()"
|
|
color="primary">
|
|
Log In
|
|
</ion-button>
|
|
</ion-item-group>
|
|
|
|
<!-- display the avatar if user is logged in -->
|
|
<ion-item-group
|
|
*ngIf=" ( auth.currentUser$ | async ) ">
|
|
<ion-button
|
|
color="secondary">
|
|
{{( auth.currentUser$ | async ).email }}
|
|
</ion-button>
|
|
<ion-button
|
|
(click)="logout()"
|
|
color="primary">
|
|
Log Out
|
|
</ion-button>
|
|
</ion-item-group> |