aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2023-05-03 16:59:07 +0100
committerChristopher Baines <mail@cbaines.net>2023-05-03 16:59:07 +0100
commitf3bd8fe432d382c64b65655f69056b161258ac63 (patch)
tree5f4181a2af011616b5b834183aa3760db603c45f /assets
parent6a8fab1bf60d948cf28e624dd0fb363a11d281cd (diff)
downloadbffe-f3bd8fe432d382c64b65655f69056b161258ac63.tar
bffe-f3bd8fe432d382c64b65655f69056b161258ac63.tar.gz
Handle removing builds from agents on setup failures
On the activity page.
Diffstat (limited to 'assets')
-rw-r--r--assets/js/activity.js8
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) {