diff --git a/ui/app/adapters/allocation.js b/ui/app/adapters/allocation.js index 66ba70940..cbba94096 100644 --- a/ui/app/adapters/allocation.js +++ b/ui/app/adapters/allocation.js @@ -41,6 +41,11 @@ export default class AllocationAdapter extends Watchable { `/v1/client/allocation/${model.id}/checks` ); const data = await res.json(); + // Append allocation ID to each check + Object.values(data).forEach((check) => { + check.Alloc = model.id; + check.Timestamp = check.Timestamp * 1000; // Convert to milliseconds + }); return data; } } diff --git a/ui/app/components/allocation-service-sidebar.hbs b/ui/app/components/allocation-service-sidebar.hbs index ada404772..3fac66a0d 100644 --- a/ui/app/components/allocation-service-sidebar.hbs +++ b/ui/app/components/allocation-service-sidebar.hbs @@ -1,3 +1,5 @@ +{{log "TODO: test" @service.healthChecks.length}} +
- {{#if @service.mostRecentChecks.length}} -