From 6acc536cf2c33b163fa376b3c242f7eadee5f5d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Octavio=20Amuch=C3=A1stegui?= Date: Tue, 6 Aug 2019 12:22:09 -0300 Subject: [PATCH] add bounty id to basic payout and not found feedback (#4966) --- app/assets/v2/js/pages/process_bounty.js | 2 ++ app/assets/v2/js/users.js | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/assets/v2/js/pages/process_bounty.js b/app/assets/v2/js/pages/process_bounty.js index 641a630fa34..59e954e9e13 100644 --- a/app/assets/v2/js/pages/process_bounty.js +++ b/app/assets/v2/js/pages/process_bounty.js @@ -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) { diff --git a/app/assets/v2/js/users.js b/app/assets/v2/js/users.js index 1b612ec4206..ed20bee7a1b 100644 --- a/app/assets/v2/js/users.js +++ b/app/assets/v2/js/users.js @@ -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'); } }); }