From c83e19a21710d55488613ffb3ae5f6e7ba5c45f3 Mon Sep 17 00:00:00 2001 From: guyfedwards Date: Tue, 27 Nov 2018 12:38:12 +0000 Subject: [PATCH] set color based on primary/canary workload sets the bg color as blue for primary and green for canary workloads --- ui/vue.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/vue.html b/ui/vue.html index 4196297..ec4e882 100644 --- a/ui/vue.html +++ b/ui/vue.html @@ -39,7 +39,7 @@ ${ pings } touch_app - Ping + Ping @@ -158,6 +158,9 @@ } } self.info = data + self.info.color = parseInt(data.version.split('.').reverse()[0], 10) === 0 + ? 'blue' + : 'green' document.title = data.hostname } xhr.onerror = function() {