Skip to content

Commit 449890f

Browse files
fix(dashboard): link a tenant row to its detail page
The tenant list rendered the name as plain text and put the row's only link on an Edit button, so nothing in the list reached /console/tenants/<name>. That page exists and is the standard detail view every other kind gets, tabs and a Delete action included, which left Edit followed by Cancel as the only way in. Every other list links the row to the detail page. This does the same with the name cell and leaves the Edit button where it is. Fixes #3822 Assisted-By: Claude <[email protected]> Signed-off-by: Myasnikov Daniil <[email protected]>
1 parent 0dc56b4 commit 449890f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • packages/system/dashboard/images/console/apps/console/src/routes

‎packages/system/dashboard/images/console/apps/console/src/routes/TenantsPage.tsx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,12 @@ export function TenantsPage() {
124124
return (
125125
<tr key={name} className="hover:bg-slate-50">
126126
<td className="px-4 py-3 text-sm font-medium text-slate-900">
127-
{name}
127+
<Link
128+
to={`/console/tenants/${name}`}
129+
className="hover:underline"
130+
>
131+
{name}
132+
</Link>
128133
</td>
129134
<td className="px-4 py-3 font-mono text-xs text-slate-600">
130135
{tenantNs || "—"}

0 commit comments

Comments
 (0)