Skip to content

Commit cf3f7e4

Browse files
authored
Merge pull request #1547 from eunmin/hystrix-dashboard_multiple_circuit_status
Support multiple circuit status for Hystrix Dashboard
2 parents df912b2 + eb91b23 commit cf3f7e4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

hystrix-dashboard/src/main/webapp/components/hystrixCommand/templates/hystrixCircuit.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@
4343
<% } else {
4444
/* We have some circuits that are open */
4545
%>
46-
Circuit <font color="orange"><%= isCircuitBreakerOpen.toString().replace("true", "Open").replace("false", "Closed") %></font>
46+
<% if(typeof isCircuitBreakerOpen === 'object' ) { %>
47+
Circuit <font color="orange">Open <%= isCircuitBreakerOpen.true %></font> <font color="green">Closed <%= isCircuitBreakerOpen.false %></font>
48+
<% } else { %>
49+
Circuit <font color="orange"><%= isCircuitBreakerOpen.toString().replace("true", "Open").replace("false", "Closed") %></font>
50+
<% } %>
4751
<% } %>
4852
<% } %>
4953
</div>

0 commit comments

Comments
 (0)