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,7 +68,9 @@
|
||||||
|
|
||||||
|
|
||||||
(defn confirm-row [bounty claim]
|
(defn confirm-row [bounty claim]
|
||||||
(let [payout-address-available? (:payout_address bounty)]
|
(let [payout-address-available? (:payout_address bounty)
|
||||||
|
confirmed? (:confirmed? bounty)]
|
||||||
|
(when-not confirmed?
|
||||||
[:div
|
[:div
|
||||||
(when-not payout-address-available?
|
(when-not payout-address-available?
|
||||||
[:div.bg-sob-blue-o-20.pv2.ph3.br3.mb3.f6
|
[:div.bg-sob-blue-o-20.pv2.ph3.br3.mb3.f6
|
||||||
|
@ -85,7 +87,7 @@
|
||||||
[:div.dib.mr2.pv1
|
[:div.dib.mr2.pv1
|
||||||
[ui-balances/usd-value-label (:value-usd bounty)]]]]
|
[ui-balances/usd-value-label (:value-usd bounty)]]]]
|
||||||
[:div.dtc.v-mid
|
[:div.dtc.v-mid
|
||||||
[confirm-button bounty claim]]]]]))
|
[confirm-button bounty claim]]]]])))
|
||||||
|
|
||||||
(defn view-pr-button [claim]
|
(defn view-pr-button [claim]
|
||||||
[primary-button-link
|
[primary-button-link
|
||||||
|
|
Loading…
Reference in New Issue