mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-25 09:44:04 +01:00
33 lines
853 B
Vue
33 lines
853 B
Vue
<template>
|
|
<form-wrapper :fail="fail" :success="success">
|
|
<form @submit.prevent="handleSubmit" @keydown="form.onKeydown($event)">
|
|
<form-select :options="options" :form="form" fieldName="lang" :label="$t('settings.language')" />
|
|
<form-buttons :isBusy="form.isBusy" :caption="$t('commons.save')" />
|
|
</form>
|
|
</form-wrapper>
|
|
</template>
|
|
|
|
<script>
|
|
|
|
import Form from './../../components/Form'
|
|
|
|
export default {
|
|
data(){
|
|
return {
|
|
success: '',
|
|
fail: '',
|
|
form: new Form({
|
|
lang: 'fr'
|
|
}),
|
|
options: [
|
|
{ text: 'en', value: 'en' },
|
|
{ text: 'fr', value: 'fr' },
|
|
]
|
|
}
|
|
},
|
|
|
|
methods : {
|
|
|
|
},
|
|
}
|
|
</script> |