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