From e06b7a777555472c6046dbaef9dd3aaf582dab1e Mon Sep 17 00:00:00 2001 From: sadnub Date: Fri, 24 Nov 2023 18:34:29 -0500 Subject: [PATCH] add last_seen date to summary tab as a tooltip --- src/components/agents/SummaryTab.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/agents/SummaryTab.vue b/src/components/agents/SummaryTab.vue index cd3680f5..b7778667 100644 --- a/src/components/agents/SummaryTab.vue +++ b/src/components/agents/SummaryTab.vue @@ -34,7 +34,7 @@ :color="dash_warning_color" class="q-mr-sm" > - Agent offline + {{ store.getters.formatDate(summary.last_seen) }} - Agent online + {{ store.getters.formatDate(summary.last_seen) }} {{ summary.hostname }} @@ -311,7 +311,7 @@ export default { const ret = []; for (const customField of summary.value.custom_fields) { const definition = customFieldsDefinitions.value.find( - (def) => def.id === customField.field + (def) => def.id === customField.field, ); if ( definition && @@ -381,6 +381,7 @@ export default { dash_negative_color, serial_number, cpu, + store, // methods getSummary,