Browse Source

web: add red color for TIMED_OUT state in UI

Sahil 2 tháng trước cách đây
mục cha
commit
af1ae1fb6f
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      web/static/js/index.js

+ 2 - 2
web/static/js/index.js

@@ -67,7 +67,7 @@ function updateBuildsTable(builds) {
             status_color = 'success';
         } else if (build_info['progress']['state'] == 'PENDING') {
             status_color = 'warning';
-        } else if (build_info['progress']['state'] == 'FAILURE' || build_info['progress']['state'] == 'ERROR') {
+        } else if (build_info['progress']['state'] == 'FAILURE' || build_info['progress']['state'] == 'ERROR' || build_info['progress']['state'] == 'TIMED_OUT') {
             status_color = 'danger';
         }
 
@@ -216,7 +216,7 @@ async function tryAutoDownload(buildId) {
         }
 
         // Stop running if the build is in a terminal state
-        if (["FAILURE", "SUCCESS", "ERROR"].includes(currentState)) {
+        if (["FAILURE", "SUCCESS", "ERROR", "TIMED_OUT"].includes(currentState)) {
             clearInterval(autoDownloadIntervalId);
             return;
         }