From 883ba6759969cfd485c85171e7065c2547aa7e7e Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Tue, 16 Sep 2025 09:33:06 +0200 Subject: [PATCH] feat: update EditCheckboxModal and DailyPageClient for task linkage - Changed the label in EditCheckboxModal to clarify task linkage applies to all types, not just tasks. - Updated DailyPageClient to allow taskId linkage for all checkbox types, enhancing flexibility in task management. --- components/daily/EditCheckboxModal.tsx | 6 ++---- src/app/daily/DailyPageClient.tsx | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/components/daily/EditCheckboxModal.tsx b/components/daily/EditCheckboxModal.tsx index b88f722..f6ee201 100644 --- a/components/daily/EditCheckboxModal.tsx +++ b/components/daily/EditCheckboxModal.tsx @@ -151,9 +151,8 @@ export function EditCheckboxModal({ - {/* Liaison tâche (seulement pour les tâches) */} - {type === 'task' && ( -
+ {/* Liaison tâche (pour tous les types) */} +
@@ -241,7 +240,6 @@ export function EditCheckboxModal({
)}
- )} {/* Actions */}
diff --git a/src/app/daily/DailyPageClient.tsx b/src/app/daily/DailyPageClient.tsx index a581f9d..1789967 100644 --- a/src/app/daily/DailyPageClient.tsx +++ b/src/app/daily/DailyPageClient.tsx @@ -89,7 +89,7 @@ export function DailyPageClient({ await updateCheckbox(checkboxId, { text, type, - taskId: type === 'task' ? taskId : undefined // Supprimer la liaison tâche si on passe en réunion + taskId // Permet la liaison tâche pour tous les types }); };