feat(admin): clic sur nom de catégorie -> écran d'édition
Cohérence avec /admin/members et /admin/projects : le nom dans la 1re colonne est maintenant un RouterLink vers `admin-category-edit`. Le bouton "Éditer" en bout de ligne reste pour la découvrabilité. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -94,7 +94,10 @@ async function destroy(c: Category) {
|
|||||||
class="border-t border-donut-border hover:bg-gray-50"
|
class="border-t border-donut-border hover:bg-gray-50"
|
||||||
>
|
>
|
||||||
<td class="px-4 py-3">
|
<td class="px-4 py-3">
|
||||||
<div class="font-medium text-donut-text">{{ c.name }}</div>
|
<RouterLink
|
||||||
|
:to="{ name: 'admin-category-edit', params: { slug: c.slug } }"
|
||||||
|
class="font-medium text-donut-text hover:underline"
|
||||||
|
>{{ c.name }}</RouterLink>
|
||||||
<div v-if="c.description" class="text-xs text-donut-muted truncate max-w-md">{{ c.description }}</div>
|
<div v-if="c.description" class="text-xs text-donut-muted truncate max-w-md">{{ c.description }}</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="px-4 py-3 text-donut-muted">{{ DIMENSION_LABEL[c.dimension] }}</td>
|
<td class="px-4 py-3 text-donut-muted">{{ DIMENSION_LABEL[c.dimension] }}</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user