Commit 3e13fa1b authored by Lukas Burgey's avatar Lukas Burgey

Rename state_items

parent b6ee083d
......@@ -29,7 +29,7 @@ export class ServiceComponent implements OnInit {
public stateItem(site: t.Site): t.DeploymentState | undefined {
if (this.deployment) {
return this.deployment.state_items.find(
return this.deployment.states.find(
item => {
return item.site.id === site.id
}
......
......@@ -89,7 +89,7 @@ export interface DeploymentState {
export interface Deployment {
id: number;
state_items: DeploymentState[];
states: DeploymentState[];
state: string
state_target: string
......@@ -120,7 +120,7 @@ export interface User {
export interface UserState {
deployments: Deployment[];
//deployment_state_items: DeploymentState[];
//deployment_states: DeploymentState[];
}
export interface State {
......
......@@ -91,7 +91,7 @@ export class VoDataComponent implements OnInit {
return this.deployment$$.pipe(
map((dep: Deployment) => {
if (dep != undefined) {
return dep.state_items.find(
return dep.states.find(
(dsi: DeploymentState) => dsi.site.id == site.id && dsi.service.id == service.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