From 01d37e083534d8a69e41dffaebafad5c25712b88 Mon Sep 17 00:00:00 2001 From: Axolotle Date: Tue, 3 Nov 2020 16:44:18 +0100 Subject: [PATCH] removed mailbox_quota from UserCreate --- app/src/views/user/UserCreate.vue | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/app/src/views/user/UserCreate.vue b/app/src/views/user/UserCreate.vue index ef9f4027..b8fdfe25 100644 --- a/app/src/views/user/UserCreate.vue +++ b/app/src/views/user/UserCreate.vue @@ -47,15 +47,6 @@ - - - - -
@@ -72,7 +63,7 @@ import { validationMixin } from 'vuelidate' import { formatFormData } from '@/helpers/yunohostArguments' import { - alphalownum_, unique, required, minLength, name, sameAs, integer, minValue + alphalownum_, unique, required, minLength, name, sameAs } from '@/helpers/validators' @@ -90,7 +81,6 @@ export default { lastname: '' }, domain: '', - mailbox_quota: 0, password: '', confirmation: '' }, @@ -126,21 +116,10 @@ export default { domain: { id: 'mail', label: this.$i18n.t('user_email'), - description: this.$i18n.t('user_mail_domain_description'), + description: this.$i18n.t('tip_about_user_email'), props: { choices: [] } }, - mailbox_quota: { - label: this.$i18n.t('user_mailbox_quota'), - description: this.$i18n.t('mailbox_quota_description'), - example: this.$i18n.t('mailbox_quota_example'), - props: { - id: 'mailbox-quota', - placeholder: this.$i18n.t('mailbox_quota_placeholder'), - type: 'number' - } - }, - password: { label: this.$i18n.t('password'), description: this.$i18n.t('good_practices_about_user_password'), @@ -174,7 +153,6 @@ export default { lastname: { required, name } }, domain: { required }, - mailbox_quota: { positiveIntegrer: required, integer, minValue: minValue(0) }, password: { required, passwordLenght: minLength(8) }, confirmation: { required, passwordMatch: sameAs('password') } } @@ -184,9 +162,6 @@ export default { methods: { onSubmit () { const data = formatFormData(this.form, { flatten: true }) - if (parseInt(data.mailbox_quota) !== 0) { - data.mailbox_quota += 'M' - } this.$store.dispatch( 'POST', { uri: 'users', data } ).then(() => {