Skip to content

Commit

Permalink
Merge pull request #39 from srdante/patch-2
Browse files Browse the repository at this point in the history
Remove password focus & Fix error validation
  • Loading branch information
joelbutcher authored Jan 12, 2021
2 parents cf5bcb3 + 10e560b commit 09e9763
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,6 @@
this.accountId = id;
this.confirmingRemove = true;
setTimeout(() => {
this.$refs.password.focus();
}, 250);
},
hasAccountForProvider(provider) {
Expand All @@ -131,11 +127,7 @@
removeConnectedAccount(id) {
this.form.post(route('connected-accounts.destroy', {id}), {
preserveScroll: true,
onSuccess: () => {
if (! this.form.hasErrors()) {
this.confirmingRemove = false;
}
},
onSuccess: () => (this.confirmingRemove = false),
});
},
}
Expand Down

0 comments on commit 09e9763

Please sign in to comment.