Skip to content

Commit

Permalink
add last_seen date to summary tab as a tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
sadnub committed Nov 24, 2023
1 parent c006e4d commit e06b7a7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/agents/SummaryTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
:color="dash_warning_color"
class="q-mr-sm"
>
<q-tooltip>Agent offline</q-tooltip>
<q-tooltip>{{ store.getters.formatDate(summary.last_seen) }}</q-tooltip>
</q-icon>
<q-icon
v-else
Expand All @@ -43,7 +43,7 @@
:color="dash_positive_color"
class="q-mr-sm"
>
<q-tooltip>Agent online</q-tooltip>
<q-tooltip>{{ store.getters.formatDate(summary.last_seen) }}</q-tooltip>
</q-icon>
<b>{{ summary.hostname }}</b>
<span v-if="summary.maintenance_mode">
Expand Down Expand Up @@ -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 &&
Expand Down Expand Up @@ -381,6 +381,7 @@ export default {
dash_negative_color,
serial_number,
cpu,
store,
// methods
getSummary,
Expand Down

0 comments on commit e06b7a7

Please sign in to comment.