From dceeccfc5d23bf65a4f3e976f4cbc02d9ba50279 Mon Sep 17 00:00:00 2001 From: Luiz Aoqui Date: Thu, 21 Oct 2021 10:23:06 -0400 Subject: [PATCH] ui: add client name tooltip when displaying client ID in tables (#11358) --- .changelog/11358.txt | 3 +++ ui/app/templates/components/allocation-row.hbs | 16 ++++++++++++++-- .../components/plugin-allocation-row.hbs | 8 +++++++- 3 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 .changelog/11358.txt diff --git a/.changelog/11358.txt b/.changelog/11358.txt new file mode 100644 index 000000000..9d77e0667 --- /dev/null +++ b/.changelog/11358.txt @@ -0,0 +1,3 @@ +```release-note:improvement +ui: Display client name as a tooltip where the client ID is used +``` diff --git a/ui/app/templates/components/allocation-row.hbs b/ui/app/templates/components/allocation-row.hbs index 0fdc3174e..5c2a317b5 100644 --- a/ui/app/templates/components/allocation-row.hbs +++ b/ui/app/templates/components/allocation-row.hbs @@ -37,11 +37,23 @@ {{this.allocation.clientStatus}} {{#if (eq this.context "volume")}} - {{this.allocation.node.shortId}} + + + + {{this.allocation.node.shortId}} + + + {{/if}} {{#if (or (eq this.context "taskGroup") (eq this.context "job"))}} {{this.allocation.jobVersion}} - {{this.allocation.node.shortId}} + + + + {{this.allocation.node.shortId}} + + + {{else if (or (eq this.context "node") (eq this.context "volume"))}} {{#if (or this.allocation.job.isPending this.allocation.job.isReloading)}} diff --git a/ui/app/templates/components/plugin-allocation-row.hbs b/ui/app/templates/components/plugin-allocation-row.hbs index b1a10734a..e0c5352a1 100644 --- a/ui/app/templates/components/plugin-allocation-row.hbs +++ b/ui/app/templates/components/plugin-allocation-row.hbs @@ -44,7 +44,13 @@ - {{this.allocation.node.shortId}} + + + + {{this.allocation.node.shortId}} + + + {{#if (or this.allocation.job.isPending this.allocation.job.isReloading)}} ...