From aebaf6fb9a270180f1d09cf568e0699eb4671d37 Mon Sep 17 00:00:00 2001 From: pedrolgois Date: Sun, 9 Jun 2024 14:07:58 -0300 Subject: [PATCH] feat: allow pdf files to be uploaded on the card. #5 --- src/components/Checkbox.vue | 4 ++-- src/components/Dropzone.vue | 4 ++-- src/components/card/CardDetail.vue | 20 +++++++++++++------- src/components/list/ListItem.vue | 4 ++-- 4 files changed, 19 insertions(+), 13 deletions(-) diff --git a/src/components/Checkbox.vue b/src/components/Checkbox.vue index 531af2d..5910ba4 100644 --- a/src/components/Checkbox.vue +++ b/src/components/Checkbox.vue @@ -4,7 +4,7 @@ type="checkbox" data-cy="card-checkbox" :checked="card.completed" - @click.stop="patchCard(card, { completed: !card.completed })" + @click.stop="putCard(card, { completed: !card.completed })" > @@ -19,7 +19,7 @@ defineProps({ type: Object as PropType, }, }); -const { patchCard } = useStore(); +const { putCard } = useStore();