Commit 62b54714 authored by Lukas Burgey's avatar Lukas Burgey

Fix the display of the profile name

parent 6cad41f1
......@@ -24,10 +24,10 @@
<button mat-button mat-icon-button (click)="dialog.openSshKeys()">
<mat-icon>vpn_key</mat-icon>
</button>
<button *ngIf="userService.user != null" mat-button (click)="dialog.openProfile()">
{{ userService.user?.email }}
<button *ngIf="userService.user.profile_name != undefined" mat-button (click)="dialog.openProfile()">
{{ userService.user.profile_name }}
</button>
<button *ngIf="userService.user == null" mat-button (click)="dialog.openProfile()">
<button *ngIf="userService.user.profile_name == undefined" mat-button (click)="dialog.openProfile()">
Profile
</button>
<button mat-raised-button color="accent" (click)="userService.logout()">Logout</button>
......
......@@ -81,7 +81,7 @@ export interface Deployment {
}
export interface User {
email: string;
profile_name: string;
userinfo: any;
ssh_keys: SSHKey[];
services: Service[];
......
......@@ -31,6 +31,10 @@ body {
}
button.mat-button {
margin-right: 10px;
}
mat-icon {
vertical-align: middle;
padding-right: 5px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment