Commit ac5aae35 authored by Lukas Burgey's avatar Lukas Burgey

Adapt to small api changes

parent 8f678de8
...@@ -31,10 +31,8 @@ interface Deployment { ...@@ -31,10 +31,8 @@ interface Deployment {
} }
interface User { interface User {
sub: string;
email: string; email: string;
username: string; userinfo: any;
groups: Group[];
ssh_keys: SSHKey[]; ssh_keys: SSHKey[];
deployments: Deployment[]; deployments: Deployment[];
} }
...@@ -109,7 +107,6 @@ export class UserService { ...@@ -109,7 +107,6 @@ export class UserService {
} }
this.user = data.user; this.user = data.user;
if (this.user) { if (this.user) {
// build sshKeyData // build sshKeyData
if ('ssh_keys' in this.user) { if ('ssh_keys' in this.user) {
...@@ -120,9 +117,9 @@ export class UserService { ...@@ -120,9 +117,9 @@ export class UserService {
// build userInfoData // build userInfoData
const userInfoList = []; const userInfoList = [];
for (const key in data.user) { for (const key in this.user.userinfo) {
if (data.user.hasOwnProperty(key)) { if (this.user.userinfo.hasOwnProperty(key)) {
userInfoList.push({name: key, info: data.user[key]}); userInfoList.push({name: key, info: this.user.userinfo[key]});
} }
} }
this.userInfoData = new MatTableDataSource(userInfoList); this.userInfoData = new MatTableDataSource(userInfoList);
......
export const environment = { export const environment = {
production: true production: true,
idpCookieName: 'idp_id'
}; };
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