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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user