Skip to content

Commit

Permalink
add mon type icon to agents table closes amidaware/tacticalrmm#1966
Browse files Browse the repository at this point in the history
  • Loading branch information
wh1te909 committed Oct 17, 2024
1 parent a53a3b3 commit 21ea5a1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/components/AgentTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
<template v-slot:header-cell-plat="props">
<q-th auto-width :props="props"></q-th>
</template>
<template v-slot:header-cell-mon-type="props">
<q-th auto-width :props="props"></q-th>
</template>
<template v-slot:header-cell-checks-status="props">
<q-th :props="props">
<q-icon name="fas fa-check-double" size="1.2em">
Expand Down Expand Up @@ -206,6 +209,20 @@
</q-icon>
</q-td>

<q-td key="mon-type" :props="props">
<q-icon
v-if="props.row.monitoring_type === 'server'"
name="dns"
size="sm"
color="primary"
>
<q-tooltip>Server</q-tooltip>
</q-icon>
<q-icon v-else name="computer" size="sm" color="primary">
<q-tooltip>Workstation</q-tooltip>
</q-icon>
</q-td>

<q-td key="checks-status" :props="props">
<q-icon
v-if="props.row.maintenance_mode"
Expand Down
8 changes: 8 additions & 0 deletions src/views/DashboardView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,13 @@ export default {
sortable: true,
align: "left",
},
{
name: "mon-type",
label: "",
field: "monitoring_type",
sortable: true,
align: "left",
},
{
name: "checks-status",
align: "left",
Expand Down Expand Up @@ -600,6 +607,7 @@ export default {
visibleColumns: [
"smsalert",
"plat",
"mon-type",
"emailalert",
"dashboardalert",
"checks-status",
Expand Down

0 comments on commit 21ea5a1

Please sign in to comment.