Show unmined pending payouts as disabled on UI

Fixes: #70
This commit is contained in:
Teemu Patja 2017-06-13 19:26:48 +03:00
parent 473a525779
commit d435b0b723
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
2 changed files with 3 additions and 2 deletions

View File

@ -264,7 +264,7 @@ AND u.id = p.user_id
AND i.execute_hash IS NULL; AND i.execute_hash IS NULL;
-- :name pending-payouts :? :* -- :name pending-payouts :? :*
-- :doc lists all recently closed issues awaiting to be confirmed -- :doc recently closed issues awaiting for bot confirmation to be mined
SELECT SELECT
i.contract_address AS contract_address, i.contract_address AS contract_address,
i.issue_id AS issue_id, i.issue_id AS issue_id,

View File

@ -17,6 +17,7 @@
issue-title :issue_title} claim issue-title :issue_title} claim
merged? (= 1 (:pr_state claim)) merged? (= 1 (:pr_state claim))
paid? (not-empty (:payout_hash claim)) paid? (not-empty (:payout_hash claim))
bot-confirm-unmined? (empty? (:confirm_hash bounty))
confirming? (:confirming? bounty) confirming? (:confirming? bounty)
updated (:updated bounty)] updated (:updated bounty)]
[:div.activity-item [:div.activity-item
@ -37,7 +38,7 @@
{} {}
{:disabled true}) {:disabled true})
{:on-click #(rf/dispatch [:confirm-payout claim])} {:on-click #(rf/dispatch [:confirm-payout claim])}
(when confirming? (when (or confirming? bot-confirm-unmined?)
{:class "busy loading" :disabled true})) {:class "busy loading" :disabled true}))
(if paid? (if paid?
"Signed off" "Signed off"