fix: visible host card links in Hosts table; bump SAC to 0.8.0

Hostname and display name always link to /hosts/:id with sac-row-link styling.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-05 10:00:11 +10:00
parent 54337a5917
commit 7699d8690a
4 changed files with 15 additions and 15 deletions
+2 -13
View File
@@ -32,15 +32,14 @@
<tr v-for="h in sortedItems" :key="h.id">
<td>{{ h.id }}</td>
<td>
<RouterLink :to="`/hosts/${h.id}`" class="host-link">
<RouterLink :to="`/hosts/${h.id}`" class="sac-row-link" :title="`Карточка хоста ${h.hostname}`">
{{ h.display_name || h.hostname }}
</RouterLink>
</td>
<td>
<RouterLink v-if="h.hostname !== (h.display_name || h.hostname)" :to="`/hosts/${h.id}`" class="host-link">
<RouterLink :to="`/hosts/${h.id}`" class="sac-row-link" :title="`Карточка хоста ${h.hostname}`">
{{ h.hostname }}
</RouterLink>
<span v-else>{{ h.hostname }}</span>
</td>
<td>{{ h.product_version || "—" }}</td>
<td>{{ h.os_family }}</td>
@@ -276,13 +275,3 @@ onMounted(() => {
loadHosts();
});
</script>
<style scoped>
.host-link {
cursor: pointer;
text-decoration: none;
}
.host-link:hover {
text-decoration: underline;
}
</style>