Skip to content

Commit e134310

Browse files
bootcclaude
andcommitted
Link certname to node detail page in report summary table
Uses the existing NodeLink component to make the certname column a clickable link to the node detail page. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Chris Boot <crb@tiger-computing.co.uk>
1 parent c667657 commit e134310

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ui/src/components/ReportSummaryTable.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { type PuppetReport } from 'src/puppet/models/puppet-report';
44
import { useI18n } from 'vue-i18n';
55
import { emptyPagination } from 'src/helper/objects';
66
import { formatTimestamp } from 'src/helper/functions';
7+
import NodeLink from 'components/NodeLink.vue';
78
89
const { t } = useI18n();
910
const reports = defineModel('reports', { type: Array<PuppetReport>, required: true })
@@ -47,7 +48,13 @@ const columns: QTableColumn[] = [
4748
</script>
4849

4950
<template>
50-
<q-table :columns="columns" :rows="reports" :flat="flat" :pagination="emptyPagination" hide-pagination />
51+
<q-table :columns="columns" :rows="reports" :flat="flat" :pagination="emptyPagination" hide-pagination>
52+
<template #body-cell-certname="props">
53+
<q-td :props="props">
54+
<NodeLink :certname="props.row.certname" />
55+
</q-td>
56+
</template>
57+
</q-table>
5158
</template>
5259

5360
<style scoped></style>

0 commit comments

Comments
 (0)