Commit 8cb27251 authored by Lukas Burgey's avatar Lukas Burgey

Rework the API towards the backend

parent 3bfb461d
<div *ngIf="(userService.subscribeSpecific(userService.userSelector) | async) as user" class="mat-typography" style="margin-bottom: 50px;">
<div *ngIf="(userService.subscribeUser() | async) as user" class="mat-typography" style="margin-bottom: 50px;">
<h2>User Info</h2>
You can inspect the user information we received about you.
......@@ -5,7 +5,7 @@
<div class="header-bar">
<div *ngIf="(userService.subscribeLoggedIn() | async); else notLoggedIn">
<span *ngIf="(userService.subscribeSpecific(userService.userSelector) | async) as user">
<span *ngIf="(userService.subscribeUser() | async) as user">
<button mat-button mat-icon-button (click)="dialog.openAccount()">
......@@ -105,19 +105,26 @@ export interface User {
profile_name: string;
userinfo: UserInfo;
ssh_keys: SSHKey[];
services: Service[];
groups: Group[];
// these are additions here
services: Service[];
deployments: Deployment[];
error?: string;
export interface UserState {
deployments: Deployment[];
deployment_state_items: DeploymentStateItem[];
//deployment_state_items: DeploymentStateItem[];
export interface StateAPIResult {
export interface State {
user: User;
user_state: UserState;
services: Service[];
error?: string;
export interface Update {
deployment?: Deployment;
error?: string;
This diff is collapsed.
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