login.component.html 473 Bytes
Newer Older
Lukas Burgey's avatar
Lukas Burgey committed
1
2
3
4
5
6
7
8
9
10
11
12
<span *ngIf="userService.loggedIn ? false : true">
	<button mat-raised-button color="accent" (click)="userService.login()">Login</button>
</span>
<span *ngIf="userService.loggedIn">
	<button mat-button mat-icon-button (click)="openSshKeys()">
		<mat-icon>vpn_key</mat-icon>
	</button>
	<button mat-button (click)="openProfile()">
		{{ userService.user?.username }}
	</button>
	<button mat-raised-button color="accent" (click)="userService.logout()">Logout</button>
</span>