From 6f62b92218ed331bed880cf5fedea50fbe1fffc3 Mon Sep 17 00:00:00 2001 From: ArneBo Date: Fri, 24 Jan 2025 02:15:54 +0100 Subject: [PATCH] [WIP] refactor(front): radio pages --- front/src/components/radios/Button.vue | 15 ++++++++++----- front/src/components/radios/Card.vue | 21 +++++++++++++-------- 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/front/src/components/radios/Button.vue b/front/src/components/radios/Button.vue index 1dc7d5ce1..f48ce7795 100644 --- a/front/src/components/radios/Button.vue +++ b/front/src/components/radios/Button.vue @@ -13,6 +13,7 @@ interface Props { clientOnly?: boolean objectId?: ObjectId | number | string | null radioConfig?: RadioConfig | null + playOnly?: boolean } const props = withDefaults(defineProps(), { @@ -20,7 +21,8 @@ const props = withDefaults(defineProps(), { type: '', clientOnly: false, objectId: null, - radioConfig: null + radioConfig: null, + playOnly: false }) const store = useStore() @@ -70,7 +72,8 @@ const toggleRadio = () => { objectId: props.objectId, customRadioId: props.customRadioId, clientOnly: props.clientOnly, - config: props.radioConfig + config: props.radioConfig, + playOnly: props.playOnly }) } @@ -78,10 +81,12 @@ const toggleRadio = () => { diff --git a/front/src/components/radios/Card.vue b/front/src/components/radios/Card.vue index c8287b3e2..a9b401fdf 100644 --- a/front/src/components/radios/Card.vue +++ b/front/src/components/radios/Card.vue @@ -7,6 +7,7 @@ import { useI18n } from 'vue-i18n' import RadioButton from './Button.vue' import Card from '~/components/ui/Card.vue' +import Button from '~/components/ui/Button.vue' import Spacer from '~/components/ui/Spacer.vue' interface Props { @@ -49,23 +50,26 @@ const customRadioId = computed(() => props.customRadio?.id ?? null) {{ radio.description }} +
-