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.
This commit is contained in:
@@ -151,8 +151,7 @@ export function EditCheckboxModal({
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Liaison tâche (seulement pour les tâches) */}
|
||||
{type === 'task' && (
|
||||
{/* Liaison tâche (pour tous les types) */}
|
||||
<div>
|
||||
<label className="block text-sm font-medium text-[var(--foreground)] mb-2">
|
||||
Lier à une tâche (optionnel)
|
||||
@@ -241,7 +240,6 @@ export function EditCheckboxModal({
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Actions */}
|
||||
<div className="flex gap-2 justify-end pt-4">
|
||||
|
||||
@@ -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
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user