Skip to content

Commit

Permalink
set color based on primary/canary workload
Browse files Browse the repository at this point in the history
sets the bg color as blue for primary and green for canary workloads
  • Loading branch information
guyfedwards committed Nov 27, 2018
1 parent a9a1252 commit c83e19a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/vue.html
Expand Up @@ -39,7 +39,7 @@ <h1 class="white--text mb-2 display-1 text-xs-center">${ info.message }</h1>
<span slot="badge">${ pings }</span>
<v-icon left dark>touch_app</v-icon>
</v-badge>
Ping
Ping
</v-btn>
</v-layout>
</v-parallax>
Expand Down Expand Up @@ -158,6 +158,9 @@ <h2 class="headline">The best way to start developing</h2>
}
}
self.info = data
self.info.color = parseInt(data.version.split('.').reverse()[0], 10) === 0
? 'blue'
: 'green'
document.title = data.hostname
}
xhr.onerror = function() {
Expand Down

0 comments on commit c83e19a

Please sign in to comment.