fix: allow disabled radio buttons when created from radios.vue

This commit is contained in:
ThatOneCalculator 2023-05-08 13:36:22 -07:00
parent 189e972e0d
commit fd8ca682e5
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
2 changed files with 3 additions and 2 deletions

View File

@ -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),

View File

@ -24,7 +24,7 @@
<FormRadios v-model="importType" class="_formBlock">
<option value="calckey">Calckey/Misskey</option>
<option value="mastodon">Mastodon/Akkoma/Pleroma</option>
<option class="disabled" :disabled="true" value="twitter">
<option :disabled="true" value="twitter">
Twitter (soon)
</option>
</FormRadios>