From aee6fbaf73ad91f2b3443ea23abd7cff67e1d913 Mon Sep 17 00:00:00 2001 From: Arthur Lefebvre Date: Sun, 8 Mar 2026 19:00:40 +0100 Subject: [PATCH] Book form: can now click "start read" even when the book is marked as read It will do the same behavior as clicking on the "read" button again to cancel it. --- front/src/BigIcon.vue | 12 ++---------- front/src/BookDateWidget.vue | 4 +--- front/src/BookForm.vue | 6 +++++- front/src/BookFormIcons.vue | 4 +--- 4 files changed, 9 insertions(+), 17 deletions(-) diff --git a/front/src/BigIcon.vue b/front/src/BigIcon.vue index bdf1402..4bb094f 100644 --- a/front/src/BigIcon.vue +++ b/front/src/BigIcon.vue @@ -5,16 +5,13 @@ const props = defineProps({ icon: String, legend: String, isSet: Boolean, - isReadonly: Boolean, }) const hovered = ref(false) const isOnMobile = ref(computeIsOnMobile()) const computedIcon = computed( - () => - props.icon + - (!props.isReadonly && ((hovered.value && !isOnMobile.value) || props.isSet) ? 'Fill' : ''), + () => props.icon + ((hovered.value && !isOnMobile.value) || props.isSet ? 'Fill' : ''), ) function computeIsOnMobile() { @@ -34,8 +31,7 @@ onUnmounted(() => {