Commit ac5aae35 authored by Lukas Burgey's avatar Lukas Burgey

Adapt to small api changes

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