Status
- {{#if model.lastMigrateTime}}
-
{{moment-to-now model.lastMigrateTime interval=1000 hideAffix=true}} since an allocation was successfully migrated.
+ {{#if this.model.lastMigrateTime}}
+
{{moment-to-now this.model.lastMigrateTime interval=1000 hideAffix=true}} since an allocation was successfully migrated.
{{else}}
No allocations migrated.
{{/if}}
@@ -259,10 +259,10 @@
@@ -273,30 +273,30 @@
Allocations
- {{#if preemptions.length}}
+ {{#if this.preemptions.length}}
{{/if}}
- {{#if sortedHostVolumes.length}}
+ {{#if this.sortedHostVolumes.length}}
Host Volumes
-
+
Name |
Source |
@@ -392,7 +392,7 @@
Driver Status
-
+
@@ -454,17 +454,17 @@
Meta
- {{#if model.meta.attributesStructured}}
+ {{#if this.model.meta.attributesStructured}}
{{else}}
diff --git a/ui/app/templates/clients/client/monitor.hbs b/ui/app/templates/clients/client/monitor.hbs
index 8f4ac89d1390..e53c2535661c 100644
--- a/ui/app/templates/clients/client/monitor.hbs
+++ b/ui/app/templates/clients/client/monitor.hbs
@@ -1,11 +1,11 @@
-{{title "Client " (or model.name model.shortId)}}
-
+{{title "Client " (or this.model.name this.model.shortId)}}
+
{{#if (can "read agent")}}
+ @level={{this.level}}
+ @client={{this.model}}
+ @onLevelChange={{action (mut this.level)}} />
{{else}}
{{/if}}
diff --git a/ui/app/templates/clients/index.hbs b/ui/app/templates/clients/index.hbs
index 1fb413a4be13..e73d4e9598f0 100644
--- a/ui/app/templates/clients/index.hbs
+++ b/ui/app/templates/clients/index.hbs
@@ -1,14 +1,14 @@
{{title "Clients"}}
- {{#if isForbidden}}
+ {{#if this.isForbidden}}
{{else}}
- {{#if sortedNodes}}
+ {{#if this.sortedNodes}}
+ @source={{this.sortedNodes}}
+ @size={{this.pageSize}}
+ @page={{this.currentPage}} as |p|>
|
@@ -66,10 +66,10 @@
-
+
diff --git a/ui/app/templates/components/allocation-row.hbs b/ui/app/templates/components/allocation-row.hbs
index 9a0aa6062928..df1d784cf98d 100644
--- a/ui/app/templates/components/allocation-row.hbs
+++ b/ui/app/templates/components/allocation-row.hbs
@@ -1,74 +1,74 @@
- {{#if allocation.unhealthyDrivers.length}}
+ {{#if this.allocation.unhealthyDrivers.length}}
{{x-icon "warning" class="is-warning"}}
{{/if}}
- {{#if allocation.nextAllocation}}
+ {{#if this.allocation.nextAllocation}}
{{x-icon "history" class="is-faded"}}
{{/if}}
- {{#if allocation.wasPreempted}}
+ {{#if this.allocation.wasPreempted}}
{{x-icon "boot" class="is-faded"}}
{{/if}}
|
-
- {{allocation.shortId}}
+
+ {{this.allocation.shortId}}
|
-{{#if (eq context "job")}}
+{{#if (eq this.context "job")}}
-
- {{allocation.taskGroupName}}
+
+ {{this.allocation.taskGroupName}}
|
{{/if}}
-
{{format-month-ts allocation.createTime}} |
+
{{format-month-ts this.allocation.createTime}} |
-
- {{moment-from-now allocation.modifyTime}}
+
+ {{moment-from-now this.allocation.modifyTime}}
|
- {{allocation.clientStatus}}
+ {{this.allocation.clientStatus}}
|
-{{#if (eq context "volume")}}
-
{{allocation.node.shortId}} |
+{{#if (eq this.context "volume")}}
+
{{this.allocation.node.shortId}} |
{{/if}}
-{{#if (or (eq context "taskGroup") (eq context "job"))}}
-
{{allocation.jobVersion}} |
-
{{allocation.node.shortId}} |
-{{else if (or (eq context "node") (eq context "volume"))}}
+{{#if (or (eq this.context "taskGroup") (eq this.context "job"))}}
+
{{this.allocation.jobVersion}} |
+
{{this.allocation.node.shortId}} |
+{{else if (or (eq this.context "node") (eq this.context "volume"))}}
- {{#if (or allocation.job.isPending allocation.job.isReloading)}}
+ {{#if (or this.allocation.job.isPending this.allocation.job.isReloading)}}
...
{{else}}
- {{allocation.job.name}}
- / {{allocation.taskGroup.name}}
+ {{this.allocation.job.name}}
+ / {{this.allocation.taskGroup.name}}
{{/if}}
|
-
{{allocation.jobVersion}} |
+
{{this.allocation.jobVersion}} |
{{/if}}
-{{#if (not (eq context "volume"))}}
-
{{if allocation.taskGroup.volumes.length "Yes"}} |
+{{#if (not (eq this.context "volume"))}}
+
{{if this.allocation.taskGroup.volumes.length "Yes"}} |
{{/if}}
+ @allocation={{this.allocation}}
+ @statsTracker={{this.stats}}
+ @isLoading={{this.fetchStats.isRunning}}
+ @error={{this.statsError}} />
|
+ @allocation={{this.allocation}}
+ @statsTracker={{this.stats}}
+ @isLoading={{this.fetchStats.isRunning}}
+ @error={{this.statsError}} />
|
diff --git a/ui/app/templates/components/allocation-stat.hbs b/ui/app/templates/components/allocation-stat.hbs
index 8dabc3422bf6..d7e61e3c8ed1 100644
--- a/ui/app/templates/components/allocation-stat.hbs
+++ b/ui/app/templates/components/allocation-stat.hbs
@@ -1,17 +1,17 @@
-{{#if allocation.isRunning}}
- {{#if (and (not stat) isLoading)}}
+{{#if this.allocation.isRunning}}
+ {{#if (and (not this.stat) this.isLoading)}}
…
- {{else if error}}
+ {{else if this.error}}
{{x-icon "warning" class="is-warning"}}
{{else}}
-