From 90bd1118d41c2d37c10a96dc52b47eb56071fa4e Mon Sep 17 00:00:00 2001 From: Jocelyn Boullier Date: Tue, 23 Apr 2024 09:51:00 +0200 Subject: [PATCH] feat(common): add building EcsState (#1752) --- common/src/deployment.rs | 1 + common/src/models/deployment.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/common/src/deployment.rs b/common/src/deployment.rs index 7c139507a..65e464760 100644 --- a/common/src/deployment.rs +++ b/common/src/deployment.rs @@ -25,6 +25,7 @@ pub enum State { #[strum(ascii_case_insensitive)] pub enum EcsState { Pending, + Building, Running, #[strum(serialize = "in progress")] InProgress, diff --git a/common/src/models/deployment.rs b/common/src/models/deployment.rs index 2cafa72a0..39e1bdd7b 100644 --- a/common/src/models/deployment.rs +++ b/common/src/models/deployment.rs @@ -135,6 +135,7 @@ impl EcsState { pub fn get_color(&self) -> &str { match self { EcsState::Pending => "dark_yellow", + EcsState::Building => "yellow", EcsState::InProgress => "cyan", EcsState::Running => "green", EcsState::Stopped => "dark_blue",