Skip to content

Commit

Permalink
fix: label and added error
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva3010 committed Sep 8, 2020
1 parent 2daa0ea commit 1f02d55
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/components/BaseInputLabel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
<label :for="context.id" :class="context.classes.label">
<i v-if="labelIcon.length > 0" :class="labelIcon" />
{{ context.label }}
<span v-if="showRequiredLabel" class="text-error">
({{ $t('required') }})
</span>
<span v-if="showRequiredLabel" class="text-error"> (required) </span>
</label>
</template>

Expand Down
1 change: 1 addition & 0 deletions src/forms/formSchemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const resetPasswordRequestLink = [
type: 'email',
name: 'username',
label: 'Your email',
showRequiredLabel: true,
autocomplete: true,
validation: 'bail|required|email'
},
Expand Down
8 changes: 7 additions & 1 deletion src/views/Auth.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ export default {
this[this.formName](data);
},
authLogin() {
alert('You are logged in!');
this.$formulate.handle(
{
detail: `Credentials don't match`,
status: 400
},
this.formName
);
},
resetPasswordRequestLink() {
this.$router.push({ name: 'ResetPasswordLinkSent' });
Expand Down

0 comments on commit 1f02d55

Please sign in to comment.