Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
feudal
feudalWebpage
Commits
97d382d2
Commit
97d382d2
authored
Aug 21, 2018
by
Lukas Burgey
Browse files
Fix service listing in vo
parent
29d3afde
Changes
1
Show whitespace changes
Inline
Side-by-side
src/app/vo/vo.component.ts
View file @
97d382d2
...
...
@@ -51,9 +51,8 @@ export class VoComponent implements OnInit {
return
ss
;
}
public
servicesBySite
(
site
:
t
.
Site
):
t
.
Service
[]
{
if
(
this
.
deployment
)
{
return
this
.
deployment
.
services
.
filter
(
private
filterBySite
(
services
:
t
.
Service
[],
site
:
t
.
Site
):
t
.
Service
[]
{
return
services
.
filter
(
(
s
:
t
.
Service
)
=>
{
return
s
.
site
.
some
(
(
ss
:
t
.
Site
)
=>
{
...
...
@@ -63,7 +62,13 @@ export class VoComponent implements OnInit {
}
);
}
return
this
.
userService
.
getServices
(
this
.
group
);
public
servicesBySite
(
site
:
t
.
Site
):
t
.
Service
[]
{
if
(
this
.
deployment
)
{
return
this
.
filterBySite
(
this
.
deployment
.
services
,
site
);
}
else
{
return
this
.
filterBySite
(
this
.
userService
.
getServices
(
this
.
group
),
site
);
}
}
public
services
():
t
.
Service
[]
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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