Skip to content

Modern Docker Management, Designed for Everyone

fix: add link to container details in table column

Kyle Mendell72bd8425439f
diff --git a/src/routes/containers/columns.ts b/src/routes/containers/columns.ts
index 4b12a6ad9..aec752c0f 100644
--- a/src/routes/containers/columns.ts
+++ b/src/routes/containers/columns.ts
@@ -6,11 +6,18 @@ import { capitalizeFirstLetter } from "$lib/utils";
import { statusConfig } from "$lib/types/statuses";
import CustomBadge from "$lib/components/badges/custom-badge.svelte";
import IdCell from "./IdCell.svelte";
+import CellName from "./components/cell-name.svelte";
export const columns: ColumnDef<ServiceContainer>[] = [
{
accessorKey: "name",
header: "Name",
+ cell: ({ row }) => {
+ return renderComponent(CellName, {
+ id: row.original.id,
+ name: row.original.name,
+ });
+ },
},
{
accessorKey: "id",
diff --git a/src/routes/containers/components/cell-name.svelte b/src/routes/containers/components/cell-name.svelte
new file mode 100644
index 000000000..d8e33eb58
--- /dev/null
+++ b/src/routes/containers/components/cell-name.svelte
@@ -0,0 +1,12 @@
+<script lang="ts">
+ interface Props {
+ id: string;
+ name: string;
+ }
+
+ let { id, name }: Props = $props();
+</script>
+
+<a href="/containers/{id}" class="font-medium hover:underline">
+ {name}
+</a>