diff --git a/resources/sql/queries.sql b/resources/sql/queries.sql index 3e0c919..5dbecfd 100644 --- a/resources/sql/queries.sql +++ b/resources/sql/queries.sql @@ -264,7 +264,7 @@ AND u.id = p.user_id AND i.execute_hash IS NULL; -- :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 i.contract_address AS contract_address, i.issue_id AS issue_id, diff --git a/src/cljs/commiteth/manage_payouts.cljs b/src/cljs/commiteth/manage_payouts.cljs index 910ac8c..68e44d3 100644 --- a/src/cljs/commiteth/manage_payouts.cljs +++ b/src/cljs/commiteth/manage_payouts.cljs @@ -17,6 +17,7 @@ issue-title :issue_title} claim merged? (= 1 (:pr_state claim)) paid? (not-empty (:payout_hash claim)) + bot-confirm-unmined? (empty? (:confirm_hash bounty)) confirming? (:confirming? bounty) updated (:updated bounty)] [:div.activity-item @@ -37,7 +38,7 @@ {} {:disabled true}) {:on-click #(rf/dispatch [:confirm-payout claim])} - (when confirming? + (when (or confirming? bot-confirm-unmined?) {:class "busy loading" :disabled true})) (if paid? "Signed off"