Skip to content

Commit

Permalink
Merge pull request #3 from acs-dl/feature/remove_email
Browse files Browse the repository at this point in the history
Remove email from create user form
  • Loading branch information
velykodnyi authored Jul 5, 2023
2 parents 978549a + 1347aca commit aec5264
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions src/forms/CreateUserForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,6 @@
/>
</div>

<div class="create-user-form__field">
<h5 class="create-user-form__field-title">
{{ $t('create-user-form.email-lbl') }}
</h5>
<input-field
v-model="form.emailAddress"
scheme="secondary"
class="create-user-form__field-input"
:placeholder="$t('create-user-form.email-lbl')"
:error-message="getFieldErrorMessage('emailAddress')"
:disabled="isFormDisabled"
@blur="touchField('emailAddress')"
/>
</div>

<div class="create-user-form__actions">
<app-button
class="create-user-form__submit-btn"
Expand Down Expand Up @@ -89,7 +74,7 @@ import { AppButton } from '@/common'
import { api } from '@/api'
import { InputField, SelectField } from '@/fields'
import { useForm, useFormValidation } from '@/composables'
import { email, maxLength, required } from '@/validators'
import { maxLength, required } from '@/validators'
import { Bus, ErrorHandler } from '@/helpers'
import { DateUtil } from '@/utils'
import { UnverifiedModuleUser, VerifiedUser } from '@/types'
Expand Down Expand Up @@ -121,7 +106,6 @@ const { currentUserId } = useAuthStore()
const form = reactive({
name: '',
surname: '',
emailAddress: '',
position: '',
})
Expand All @@ -131,7 +115,6 @@ const { isFormValid, getFieldErrorMessage, touchField, isFieldsValid } =
useFormValidation(form, {
name: { required, maxLength: maxLength(MAX_LENGTH.name) },
surname: { required, maxLength: maxLength(MAX_LENGTH.surname) },
emailAddress: { email, required },
position: { required },
})
Expand Down Expand Up @@ -178,7 +161,6 @@ const submit = async () => {
name: form.name,
surname: form.surname,
position: form.position,
email: form.emailAddress,
},
},
},
Expand Down

0 comments on commit aec5264

Please sign in to comment.