This repository was archived by the owner on May 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +8
-8
lines changed Expand file tree Collapse file tree 7 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ export const mapDataToDeployment = (data: DeploymentData): Deployment => {
74
74
ref : data . ref ,
75
75
sha : data . sha ,
76
76
env : data . env ,
77
- lastStatus : mapDeploymentStatusEnum ( data . status ) ,
77
+ status : mapDeploymentStatusEnum ( data . status ) ,
78
78
uid : data . uid ,
79
79
isRollback : data . is_rollback ,
80
80
isApprovalEanbled : data . is_approval_enabled ,
Original file line number Diff line number Diff line change @@ -16,12 +16,12 @@ interface ActivityLogsProps {
16
16
export default function ActivityLogs ( props : ActivityLogsProps ) : JSX . Element {
17
17
return < Timeline >
18
18
{ props . deployments . map ( ( d , idx ) => {
19
- const dot = ( d . lastStatus === DeploymentStatusEnum . Running ) ?
19
+ const dot = ( d . status === DeploymentStatusEnum . Running ) ?
20
20
< SyncOutlined style = { { color : "purple" } } spin /> :
21
21
null
22
22
const avatar = < UserAvatar user = { d . deployer } />
23
23
24
- return < Timeline . Item key = { idx } color = { getStatusColor ( d . lastStatus ) } dot = { dot } >
24
+ return < Timeline . Item key = { idx } color = { getStatusColor ( d . status ) } dot = { dot } >
25
25
< p >
26
26
< Text strong > { d . env } </ Text > < DeploymentRefCode deployment = { d } /> < a href = { `/${ d . repo ?. namespace } /${ d . repo ?. name } /deployments/${ d . number } ` } > • View detail #{ d . number } </ a >
27
27
</ p >
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ interface DeploymentStatusBadgeProps {
9
9
export default function DeploymentStatusBadge ( props : DeploymentStatusBadgeProps ) : JSX . Element {
10
10
const deployment = props . deployment
11
11
return (
12
- < Badge color = { getStatusColor ( deployment . lastStatus ) } text = { deployment . lastStatus } />
12
+ < Badge color = { getStatusColor ( deployment . status ) } text = { deployment . status } />
13
13
)
14
14
}
15
15
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export default interface Deployment {
8
8
ref : string
9
9
sha : string
10
10
env : string
11
- lastStatus : DeploymentStatusEnum
11
+ status : DeploymentStatusEnum
12
12
uid : number
13
13
isRollback : boolean
14
14
isApprovalEanbled : boolean
Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ export const deploymentSlice = createSlice({
278
278
state . deploying = RequestStatus . Idle
279
279
280
280
if ( state . deployment ) {
281
- state . deployment . lastStatus = DeploymentStatusEnum . Failure
281
+ state . deployment . status = DeploymentStatusEnum . Failure
282
282
}
283
283
} )
284
284
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ export const mainSlice = createSlice({
130
130
} )
131
131
132
132
if ( idx !== - 1 ) {
133
- if ( ! runningDeploymentStatus . includes ( deployment . lastStatus ) ) {
133
+ if ( ! runningDeploymentStatus . includes ( deployment . status ) ) {
134
134
state . deployments . splice ( idx , 1 )
135
135
return
136
136
}
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ export default function DeploymentView(): JSX.Element {
177
177
}
178
178
179
179
function isDeployable ( deployment : Deployment , approvals : Approval [ ] ) : boolean {
180
- if ( deployment . lastStatus !== DeploymentStatusEnum . Waiting ) {
180
+ if ( deployment . status !== DeploymentStatusEnum . Waiting ) {
181
181
return false
182
182
}
183
183
You can’t perform that action at this time.
0 commit comments