From eb91b23fb099f6c1610665192346650730b3770e Mon Sep 17 00:00:00 2001 From: Eunmin Kim Date: Tue, 25 Apr 2017 18:54:10 +0900 Subject: [PATCH] Support multiple circuit status --- .../components/hystrixCommand/templates/hystrixCircuit.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hystrix-dashboard/src/main/webapp/components/hystrixCommand/templates/hystrixCircuit.html b/hystrix-dashboard/src/main/webapp/components/hystrixCommand/templates/hystrixCircuit.html index 4d97f22a4..f9b3b83e5 100644 --- a/hystrix-dashboard/src/main/webapp/components/hystrixCommand/templates/hystrixCircuit.html +++ b/hystrix-dashboard/src/main/webapp/components/hystrixCommand/templates/hystrixCircuit.html @@ -43,7 +43,11 @@ <% } else { /* We have some circuits that are open */ %> - Circuit <%= isCircuitBreakerOpen.toString().replace("true", "Open").replace("false", "Closed") %> + <% if(typeof isCircuitBreakerOpen === 'object' ) { %> + Circuit Open <%= isCircuitBreakerOpen.true %> Closed <%= isCircuitBreakerOpen.false %> + <% } else { %> + Circuit <%= isCircuitBreakerOpen.toString().replace("true", "Open").replace("false", "Closed") %> + <% } %> <% } %> <% } %>