mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
ui: add client name tooltip when displaying client ID in tables (#11358)
This commit is contained in:
3
.changelog/11358.txt
Normal file
3
.changelog/11358.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
```release-note:improvement
|
||||||
|
ui: Display client name as a tooltip where the client ID is used
|
||||||
|
```
|
||||||
@@ -37,11 +37,23 @@
|
|||||||
<span class="color-swatch {{this.allocation.clientStatus}}" /> {{this.allocation.clientStatus}}
|
<span class="color-swatch {{this.allocation.clientStatus}}" /> {{this.allocation.clientStatus}}
|
||||||
</td>
|
</td>
|
||||||
{{#if (eq this.context "volume")}}
|
{{#if (eq this.context "volume")}}
|
||||||
<td data-test-client><LinkTo @route="clients.client" @model={{this.allocation.node}}>{{this.allocation.node.shortId}}</LinkTo></td>
|
<td data-test-client>
|
||||||
|
<span class="tooltip multiline" aria-label="{{this.allocation.node.name}}">
|
||||||
|
<LinkTo @route="clients.client" @model={{this.allocation.node}}>
|
||||||
|
{{this.allocation.node.shortId}}
|
||||||
|
</LinkTo>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if (or (eq this.context "taskGroup") (eq this.context "job"))}}
|
{{#if (or (eq this.context "taskGroup") (eq this.context "job"))}}
|
||||||
<td data-test-job-version>{{this.allocation.jobVersion}}</td>
|
<td data-test-job-version>{{this.allocation.jobVersion}}</td>
|
||||||
<td data-test-client><LinkTo @route="clients.client" @model={{this.allocation.node}}>{{this.allocation.node.shortId}}</LinkTo></td>
|
<td data-test-client>
|
||||||
|
<span class="tooltip multiline" aria-label="{{this.allocation.node.name}}">
|
||||||
|
<LinkTo @route="clients.client" @model={{this.allocation.node}}>
|
||||||
|
{{this.allocation.node.shortId}}
|
||||||
|
</LinkTo>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
{{else if (or (eq this.context "node") (eq this.context "volume"))}}
|
{{else if (or (eq this.context "node") (eq this.context "volume"))}}
|
||||||
<td>
|
<td>
|
||||||
{{#if (or this.allocation.job.isPending this.allocation.job.isReloading)}}
|
{{#if (or this.allocation.job.isPending this.allocation.job.isReloading)}}
|
||||||
|
|||||||
@@ -44,7 +44,13 @@
|
|||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td data-test-client><LinkTo @route="clients.client" @model={{this.allocation.node}}>{{this.allocation.node.shortId}}</LinkTo></td>
|
<td data-test-client>
|
||||||
|
<span class="tooltip multiline" aria-label="{{this.allocation.node.name}}">
|
||||||
|
<LinkTo @route="clients.client" @model={{this.allocation.node}}>
|
||||||
|
{{this.allocation.node.shortId}}
|
||||||
|
</LinkTo>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{{#if (or this.allocation.job.isPending this.allocation.job.isReloading)}}
|
{{#if (or this.allocation.job.isPending this.allocation.job.isReloading)}}
|
||||||
...
|
...
|
||||||
|
|||||||
Reference in New Issue
Block a user