Skip to content

Commit

Permalink
add bounty id to basic payout and not found feedback (#4966)
Browse files Browse the repository at this point in the history
  • Loading branch information
octavioamu authored and thelostone-mc committed Aug 6, 2019
1 parent 8b54b92 commit 6acc536
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/assets/v2/js/pages/process_bounty.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ window.onload = function() {
var issueURL = $('input[name=issueURL]').val();
var fulfillmentId = getSelectedFulfillment().getAttribute('value');

sessionStorage['bountyId'] = getURLParams('pk');

var isError = false;

if ($('#terms:checked').length == 0) {
Expand Down
4 changes: 3 additions & 1 deletion app/assets/v2/js/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,11 @@ Vue.mixin({
let getUsers = fetchData (api, 'GET');

$.when(getUsers).then(function(response) {
if (response && response.data) {
if (response && response.data.length) {
vm.openBounties(response.data[0]);
$('#userModal').bootstrapModal('show');
} else {
_alert('The user was not found. Please try using the search box.', 'error');
}
});
}
Expand Down

0 comments on commit 6acc536

Please sign in to comment.