feat(plan): add hard-delete for categories (blocked when in use)
DELETE /plan/categories/:id now hard-deletes the row, guarded: refuses when any live entry/override uses the key (suggests hide instead) and keeps >=1 active category. Modal gains a per-row Smazat with inline confirm. Hiding stays via PATCH is_active. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1011,3 +1011,13 @@
|
||||
padding-top: 10px;
|
||||
border-top: 1px dashed var(--plan-paper-rule);
|
||||
}
|
||||
/* The per-row delete trigger reads quieter than the solid danger confirm
|
||||
button it turns into; keep it an outline until the user commits. */
|
||||
.plan-cat-delete.admin-btn-danger {
|
||||
background: transparent;
|
||||
color: #dc2626;
|
||||
border: 1px solid color-mix(in srgb, #dc2626 40%, transparent);
|
||||
}
|
||||
.plan-cat-delete.admin-btn-danger:hover:not(:disabled) {
|
||||
background: color-mix(in srgb, #dc2626 12%, transparent);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user