Skip to content

Commit

Permalink
Changed amount input step
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-slavov committed May 15, 2020
1 parent 5eae3e6 commit 0b5506d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/AeInputAmount.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default {
},
props: {
min: { type: Number, default: 0 },
step: { type: Number, default: 0.1 },
step: { type: Number, default: 0.01 },
value: { type: [Number, String], required: true },
disabled: { type: Boolean },
},
Expand Down
6 changes: 5 additions & 1 deletion src/components/layout/sendTip/SendTip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,13 @@ export default {
.then(async () => {
await Backend.cacheInvalidateTips().catch(console.error);
this.clearTipForm();
this.sendingTip = false;
EventBus.$emit('reloadData');
this.showSuccessMsg();
}).catch((e) => {
this.sendingTip = false;
if (e.code && e.code === 4) {
return;
}
console.error(e);
this.showErrorMsg();
});
Expand All @@ -188,6 +191,7 @@ export default {
},
clearTipForm() {
this.sendTipForm = { amount: 0, url: '', title: '' };
this.sendingTip = false;
},
toggleSendTip(openSection) {
this.open = openSection;
Expand Down

1 comment on commit 0b5506d

@mradkov
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.