Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
feudal
feudalWebpage
Commits
ac5aae35
Commit
ac5aae35
authored
Mar 05, 2018
by
Lukas Burgey
Browse files
Adapt to small api changes
parent
8f678de8
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/app/user.service.ts
View file @
ac5aae35
...
...
@@ -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
.
user
info
)
{
if
(
this
.
user
.
user
info
.
hasOwnProperty
(
key
))
{
userInfoList
.
push
({
name
:
key
,
info
:
this
.
user
.
user
info
[
key
]});
}
}
this
.
userInfoData
=
new
MatTableDataSource
(
userInfoList
);
...
...
src/environments/environment.prod.ts
View file @
ac5aae35
export
const
environment
=
{
production
:
true
production
:
true
,
idpCookieName
:
'
idp_id
'
};
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment