From fd8ca682e554a7aebded7deb98b9a6aaf5130da7 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Mon, 8 May 2023 13:36:22 -0700 Subject: [PATCH] fix: allow disabled radio buttons when created from radios.vue --- packages/client/src/components/form/radios.vue | 3 ++- packages/client/src/pages/settings/import-export.vue | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/client/src/components/form/radios.vue b/packages/client/src/components/form/radios.vue index 5c98edce3..24ae0654c 100644 --- a/packages/client/src/components/form/radios.vue +++ b/packages/client/src/components/form/radios.vue @@ -57,7 +57,8 @@ export default defineComponent({ MkRadio, { key: option.key, - value: option.props.value, + value: option.props?.value, + disabled: option.props?.disabled, modelValue: this.value, "onUpdate:modelValue": (value) => (this.value = value), diff --git a/packages/client/src/pages/settings/import-export.vue b/packages/client/src/pages/settings/import-export.vue index 655ca85b8..229a6f5e3 100644 --- a/packages/client/src/pages/settings/import-export.vue +++ b/packages/client/src/pages/settings/import-export.vue @@ -24,7 +24,7 @@ -