samples/consul-ui/js/utils.js in consul-templaterb-1.9.9 vs samples/consul-ui/js/utils.js in consul-templaterb-1.10.0
- old
+ new
@@ -225,19 +225,19 @@
services.appendChild(service);
}
return services;
}
-function checksStatusGenerator(instance) {
+function checksStatusGenerator(instance, prefix) {
var instanceChecks = instance.checks;
var checks = document.createElement('div');
checks.className = 'checks';
checks.appendChild(document.createTextNode("Checks: "));
checks.appendChild(document.createElement('br'));
for (var checkKey in instanceChecks) {
var checkInstance = instanceChecks[checkKey];
- var checkId = instance.name + '::' + checkInstance.checkid;
+ var checkId = prefix + '::' + checkInstance.checkid;
var btn = 'btn-' + toCSSClass(instanceChecks[checkKey]['status'])
var check = document.createElement('div');
var btnCheck = document.createElement('button');
btnCheck.setAttribute('class','btn ' + btn + ' btn-sm m-1');