only allow revocation if there are none pending

This commit is contained in:
Rob Culliton 2018-05-10 14:09:42 -04:00
parent fffe92f87d
commit ecb777736a
No known key found for this signature in database
GPG Key ID: 6FDEF60B3DC84D94

View File

@ -270,7 +270,8 @@
[:div.ui.menu.revoke.transition {:tab-index -1}]
[:div.ui.menu.transition.hidden])]
[:div.fl.w-20
[three-dots (:issue-id bounty)]
(if (empty? @(rf/subscribe [:pending-revocations]))
[three-dots (:issue-id bounty)])
(into menu [[:div
[:a.pa2
{:on-click #(rf/dispatch [:revoke-bounty {:issue-id (:issue-id bounty)}])}