From f3bd8fe432d382c64b65655f69056b161258ac63 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Wed, 3 May 2023 16:59:07 +0100 Subject: Handle removing builds from agents on setup failures On the activity page. --- assets/js/activity.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'assets') diff --git a/assets/js/activity.js b/assets/js/activity.js index 1f98ae8..3de5bd5 100644 --- a/assets/js/activity.js +++ b/assets/js/activity.js @@ -204,7 +204,13 @@ function buildSetupFailureHandler(e) { data.timestamp ); - // Remove from agent with setup failure animation + const buildElement = document.getElementById( + "build-" + data.build_id + ); + + animateElementAndRemove(buildElement, "red"); + + updateAgentBuildRelatedElements(data.agent_id); } function allocationPlanUpdateHandler(e) { -- cgit v1.2.3