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 39c6949321
commit 04d0e002e9
2 changed files with 3 additions and 2 deletions

View file

@ -57,7 +57,8 @@ export default defineComponent({
MkRadio, MkRadio,
{ {
key: option.key, key: option.key,
value: option.props.value, value: option.props?.value,
disabled: option.props?.disabled,
modelValue: this.value, modelValue: this.value,
"onUpdate:modelValue": (value) => "onUpdate:modelValue": (value) =>
(this.value = value), (this.value = value),

View file

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