mirror of
https://github.com/status-im/open-bounty.git
synced 2025-01-12 02:24:18 +00:00
incude confirmed? check, and make sure that flag is updated after confirming? so blue button doesn't stick around
This commit is contained in:
parent
b9c948b778
commit
662ab33d9f
@ -527,8 +527,8 @@
|
|||||||
(fn [{:keys [db]} [_ issue-id]]
|
(fn [{:keys [db]} [_ issue-id]]
|
||||||
{:dispatch [:load-owner-bounties]
|
{:dispatch [:load-owner-bounties]
|
||||||
:db (-> db
|
:db (-> db
|
||||||
(dissoc-in [:owner-bounties issue-id :confirming?])
|
(assoc-in [:owner-bounties issue-id :confirmed?] true)
|
||||||
(assoc-in [:owner-bounties issue-id :confirmed?] true))
|
(dissoc-in [:owner-bounties issue-id :confirming?]))
|
||||||
:store (dissoc-in store [:owner-bounties issue-id :confirming?])}))
|
:store (dissoc-in store [:owner-bounties issue-id :confirming?])}))
|
||||||
|
|
||||||
(reg-event-fx
|
(reg-event-fx
|
||||||
|
@ -68,24 +68,26 @@
|
|||||||
|
|
||||||
|
|
||||||
(defn confirm-row [bounty claim]
|
(defn confirm-row [bounty claim]
|
||||||
(let [payout-address-available? (:payout_address bounty)]
|
(let [payout-address-available? (:payout_address bounty)
|
||||||
[:div
|
confirmed? (:confirmed? bounty)]
|
||||||
(when-not payout-address-available?
|
(when-not confirmed?
|
||||||
[:div.bg-sob-blue-o-20.pv2.ph3.br3.mb3.f6
|
[:div
|
||||||
[:p [:span.pg-med (or (:user_name claim) (:user_login claim))
|
|
||||||
"’s payment address is pending."] " You will be able to confirm the payment once the address is provided."]])
|
|
||||||
[:div.cf
|
|
||||||
[:div.dt.fr
|
|
||||||
(when-not payout-address-available?
|
(when-not payout-address-available?
|
||||||
{:style {:-webkit-filter "grayscale(1)"
|
[:div.bg-sob-blue-o-20.pv2.ph3.br3.mb3.f6
|
||||||
:pointer-events "none"}})
|
[:p [:span.pg-med (or (:user_name claim) (:user_login claim))
|
||||||
[:div.dtc.v-mid.pr3.f6
|
"’s payment address is pending."] " You will be able to confirm the payment once the address is provided."]])
|
||||||
[:div
|
[:div.cf
|
||||||
[ui-balances/token-balances (bnt/crypto-balances bounty) :badge]
|
[:div.dt.fr
|
||||||
[:div.dib.mr2.pv1
|
(when-not payout-address-available?
|
||||||
[ui-balances/usd-value-label (:value-usd bounty)]]]]
|
{:style {:-webkit-filter "grayscale(1)"
|
||||||
[:div.dtc.v-mid
|
:pointer-events "none"}})
|
||||||
[confirm-button bounty claim]]]]]))
|
[:div.dtc.v-mid.pr3.f6
|
||||||
|
[:div
|
||||||
|
[ui-balances/token-balances (bnt/crypto-balances bounty) :badge]
|
||||||
|
[:div.dib.mr2.pv1
|
||||||
|
[ui-balances/usd-value-label (:value-usd bounty)]]]]
|
||||||
|
[:div.dtc.v-mid
|
||||||
|
[confirm-button bounty claim]]]]])))
|
||||||
|
|
||||||
(defn view-pr-button [claim]
|
(defn view-pr-button [claim]
|
||||||
[primary-button-link
|
[primary-button-link
|
||||||
|
Loading…
x
Reference in New Issue
Block a user