diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2022-05-22 16:38:21 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2022-05-22 16:38:21 +0000 |
| commit | 3b6d72ef3b57877587e48e35744954945c44a217 (patch) | |
| tree | a38bd995196a52d14d499b46c1b8f256e17a9877 /src/components/registration/registration.js | |
| parent | a88abc7ee3b78427e40bc4d2346a78e9871d1ba4 (diff) | |
| parent | 069cf3fa87c0d29803275fe66864d5e439cad309 (diff) | |
Merge branch 'revert-a88abc7e' into 'develop'
Revert "Merge branch 'from/develop/tusooa/lang-opts' into 'develop'"
See merge request pleroma/pleroma-fe!1526
Diffstat (limited to 'src/components/registration/registration.js')
| -rw-r--r-- | src/components/registration/registration.js | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/components/registration/registration.js b/src/components/registration/registration.js index 6eb316d0..a3ef0f04 100644 --- a/src/components/registration/registration.js +++ b/src/components/registration/registration.js @@ -1,8 +1,6 @@ import useVuelidate from '@vuelidate/core' import { required, requiredIf, sameAs } from '@vuelidate/validators' import { mapActions, mapState } from 'vuex' -import InterfaceLanguageSwitcher from '../interface_language_switcher/interface_language_switcher.vue' -import localeService from '../../services/locale/locale.service.js' const registration = { setup () { return { v$: useVuelidate() } }, @@ -13,14 +11,10 @@ const registration = { username: '', password: '', confirm: '', - reason: '', - language: '' + reason: '' }, captcha: {} }), - components: { - InterfaceLanguageSwitcher - }, validations () { return { user: { @@ -32,8 +26,7 @@ const registration = { required, sameAs: sameAs(this.user.password) }, - reason: { required: requiredIf(() => this.accountApprovalRequired) }, - language: {} + reason: { required: requiredIf(() => this.accountApprovalRequired) } } } }, @@ -71,9 +64,6 @@ const registration = { this.user.captcha_solution = this.captcha.solution this.user.captcha_token = this.captcha.token this.user.captcha_answer_data = this.captcha.answer_data - if (this.user.language) { - this.user.language = localeService.internalToBackendLocale(this.user.language) - } this.v$.$touch() |
