Skip to content

Commit

Permalink
Add autofocus prop on JoinOrNewLOD Radio buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVelezLl committed Nov 23, 2023
1 parent 800d2ca commit f6c9afc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions kolibri/plugins/setup_wizard/assets/src/views/JoinOrNewLOD.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
:label="$tr('joinFacilityLabel')"
:value="Options.JOIN"
class="radio-button"
:autofocus="isJoinSetup"
/>
<KRadioButton
v-model="selected"
:label="$tr('importFromFacilityLabel')"
:value="Options.IMPORT"
class="radio-button"
:autofocus="isImportSetup"
/>
<SelectDeviceModalGroup
v-if="showSelectAddressModal"
Expand Down Expand Up @@ -47,6 +49,14 @@
showSelectAddressModal: false,
};
},
computed: {
isJoinSetup() {
return this.selected === Options.JOIN;
},
isImportSetup() {
return this.selected === Options.IMPORT;
},
},
methods: {
handleContinueImport(address) {
this.wizardService.send({
Expand Down

0 comments on commit f6c9afc

Please sign in to comment.