diff options
author | Christopher Baines <mail@cbaines.net> | 2023-05-03 16:59:07 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2023-05-03 16:59:07 +0100 |
commit | f3bd8fe432d382c64b65655f69056b161258ac63 (patch) | |
tree | 5f4181a2af011616b5b834183aa3760db603c45f | |
parent | 6a8fab1bf60d948cf28e624dd0fb363a11d281cd (diff) | |
download | bffe-f3bd8fe432d382c64b65655f69056b161258ac63.tar bffe-f3bd8fe432d382c64b65655f69056b161258ac63.tar.gz |
Handle removing builds from agents on setup failures
On the activity page.
-rw-r--r-- | assets/js/activity.js | 8 |
1 files changed, 7 insertions, 1 deletions
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) { |