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
3e13fa1b
Commit
3e13fa1b
authored
Nov 28, 2018
by
Lukas Burgey
Browse files
Rename state_items
parent
b6ee083d
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/app/service/service.component.ts
View file @
3e13fa1b
...
...
@@ -29,7 +29,7 @@ export class ServiceComponent implements OnInit {
public
stateItem
(
site
:
t
.
Site
):
t
.
DeploymentState
|
undefined
{
if
(
this
.
deployment
)
{
return
this
.
deployment
.
state
_item
s
.
find
(
return
this
.
deployment
.
states
.
find
(
item
=>
{
return
item
.
site
.
id
===
site
.
id
}
...
...
src/app/types/types.module.ts
View file @
3e13fa1b
...
...
@@ -89,7 +89,7 @@ export interface DeploymentState {
export
interface
Deployment
{
id
:
number
;
state
_item
s
:
DeploymentState
[];
states
:
DeploymentState
[];
state
:
string
state_target
:
string
...
...
@@ -120,7 +120,7 @@ export interface User {
export
interface
UserState
{
deployments
:
Deployment
[];
//deployment_state
_item
s: DeploymentState[];
//deployment_states: DeploymentState[];
}
export
interface
State
{
...
...
src/app/vo-data/vo-data.component.ts
View file @
3e13fa1b
...
...
@@ -91,7 +91,7 @@ export class VoDataComponent implements OnInit {
return
this
.
deployment$$
.
pipe
(
map
((
dep
:
Deployment
)
=>
{
if
(
dep
!=
undefined
)
{
return
dep
.
state
_item
s
.
find
(
return
dep
.
states
.
find
(
(
dsi
:
DeploymentState
)
=>
dsi
.
site
.
id
==
site
.
id
&&
dsi
.
service
.
id
==
service
.
id
,
)
}
...
...
Write
Preview
Supports
Markdown
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