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

Fix the display of the profile name

parent 6cad41f1
...@@ -24,10 +24,10 @@ ...@@ -24,10 +24,10 @@
<button mat-button mat-icon-button (click)="dialog.openSshKeys()"> <button mat-button mat-icon-button (click)="dialog.openSshKeys()">
<mat-icon>vpn_key</mat-icon> <mat-icon>vpn_key</mat-icon>
</button> </button>
<button *ngIf="userService.user != null" mat-button (click)="dialog.openProfile()"> <button *ngIf="userService.user.profile_name != undefined" mat-button (click)="dialog.openProfile()">
{{ userService.user?.email }} {{ userService.user.profile_name }}
</button> </button>
<button *ngIf="userService.user == null" mat-button (click)="dialog.openProfile()"> <button *ngIf="userService.user.profile_name == undefined" mat-button (click)="dialog.openProfile()">
Profile Profile
</button> </button>
<button mat-raised-button color="accent" (click)="userService.logout()">Logout</button> <button mat-raised-button color="accent" (click)="userService.logout()">Logout</button>
......
...@@ -81,7 +81,7 @@ export interface Deployment { ...@@ -81,7 +81,7 @@ export interface Deployment {
} }
export interface User { export interface User {
email: string; profile_name: string;
userinfo: any; userinfo: any;
ssh_keys: SSHKey[]; ssh_keys: SSHKey[];
services: Service[]; services: Service[];
......
...@@ -31,6 +31,10 @@ body { ...@@ -31,6 +31,10 @@ body {
} }
button.mat-button {
margin-right: 10px;
}
mat-icon { mat-icon {
vertical-align: middle; vertical-align: middle;
padding-right: 5px; 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