Skip to content

Commit 94fa6d6

Browse files
authored
fix(front): wrong pipeline mapping in deployment targets (#314)
1 parent 3f8ed35 commit 94fa6d6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

front/lib/front_web/views/deployments_view.ex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,25 @@ defmodule FrontWeb.DeploymentsView do
2222
def deployment_state(%Deployment{state: :PENDING}), do: :RUNNING
2323

2424
defp pipeline_state(:DONE, :PASSED), do: :PASSED
25-
defp pipeline_state(:DONE, :STOPPED), do: :CANCELLED
26-
defp pipeline_state(:DONE, :CANCELLED), do: :CANCELLED
25+
defp pipeline_state(:DONE, :STOPPED), do: :CANCELED
26+
defp pipeline_state(:DONE, :CANCELED), do: :CANCELED
2727
defp pipeline_state(:DONE, :FAILED), do: :FAILED
2828
defp pipeline_state(_state, _result), do: :RUNNING
2929

3030
def details_color(:RUNNING), do: "blue"
3131
def details_color(:PASSED), do: "green"
3232
def details_color(:FAILED), do: "red"
33-
def details_color(:CANCELLED), do: "gray"
33+
def details_color(:CANCELED), do: "gray"
3434

3535
def details_title(:RUNNING), do: "Deployment in progress"
3636
def details_title(:PASSED), do: "Last deployment"
3737
def details_title(:FAILED), do: "Last deployment"
38-
def details_title(:CANCELLED), do: "Last deployment"
38+
def details_title(:CANCELED), do: "Last deployment"
3939

4040
def details_circle(:RUNNING), do: "circle"
4141
def details_circle(:PASSED), do: "check_circle"
4242
def details_circle(:FAILED), do: "cancel"
43-
def details_circle(:CANCELLED), do: "do_not_disturb_on"
43+
def details_circle(:CANCELED), do: "do_not_disturb_on"
4444

4545
def git_ref_icon(%RepoProxy{type: type}),
4646
do: git_ref_icon(type)

0 commit comments

Comments
 (0)