incude confirmed? check, and make sure that flag is updated after confirming? so blue button doesn't stick around

This commit is contained in:
Rob Culliton 2018-05-24 21:53:37 -04:00
parent b9c948b778
commit 662ab33d9f
No known key found for this signature in database
GPG Key ID: 12802B6CC52A98B8
2 changed files with 21 additions and 19 deletions

View File

@ -527,8 +527,8 @@
(fn [{:keys [db]} [_ issue-id]]
{:dispatch [:load-owner-bounties]
: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?])}))
(reg-event-fx

View File

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