Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix etc payout flow #6240

Merged
merged 1 commit into from
Mar 20, 2020
Merged

fix etc payout flow #6240

merged 1 commit into from
Mar 20, 2020

Conversation

octavioamu
Copy link
Contributor

Description

change pending by default after payout
close modal
refetch bounty data.

Refers/Fixes
Testing

@octavioamu octavioamu changed the base branch from master to stable March 16, 2020 18:15
const apiUrlBounty = `/api/v1/bounty/payout/${fulfillment_id}`;

event.target.disabled = true;
Copy link
Member

Choose a reason for hiding this comment

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

what's the event.target for ? to disable the button ?

Copy link
Contributor Author

@octavioamu octavioamu Mar 18, 2020

Choose a reason for hiding this comment

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

yes, to avoid multiple request when double clicking.

if (200 <= response.status && response.status <= 204) {
console.log('success', response);
vm.fetchBounty();
Copy link
Member

Choose a reason for hiding this comment

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

do we need to fetchBounty ? wouldn't updating the state suffice ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

is good to check if something else changed in that same time (ex other users submitting) also because to change the UI in the activity I will need to go to that exact fulfillment and do the modifications (is a viable option)

@thelostone-mc thelostone-mc merged commit 8b3ff46 into stable Mar 20, 2020
@thelostone-mc thelostone-mc deleted the fix/crosschain branch June 27, 2020 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants