File tree 3 files changed +8
-4
lines changed
quo/components/drawers/bottom_actions
contexts/communities/actions/addresses_for_permissions
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 53
53
:style {:color (colors/theme-colors colors/danger-50 colors/danger-60 theme)}}
54
54
error-message]])
55
55
56
- (when (= description :top )
56
+ (when (and ( = description :top ) role )
57
57
[rn/view
58
58
{:style style/description-top}
59
59
[text/text
Original file line number Diff line number Diff line change 61
61
(rf/dispatch [:communities/get-permissioned-balances id])
62
62
(fn []
63
63
(let [{:keys [name color images]} (rf/sub [:communities/community id])
64
- {:keys [highest-permission-role]} (rf/sub [:community/token-gated-overview id])
64
+ {:keys [checking?
65
+ highest-permission-role]} (rf/sub [:community/token-gated-overview id])
65
66
accounts (rf/sub [:wallet/accounts-without-watched-accounts ])
66
67
selected-addresses (rf/sub [:communities/selected-permission-addresses id])
67
68
share-all-addresses? (rf/sub [:communities/share-all-addresses? id])
105
106
{:actions :two-actions
106
107
:button-one-label (i18n/label :t/confirm-changes )
107
108
:button-one-props {:customization-color color
108
- :disabled? (or (empty? selected-addresses)
109
+ :disabled? (or checking?
110
+ (empty? selected-addresses)
109
111
(not highest-permission-role)
110
112
(not unsaved-address-changes?))
111
113
:on-press (fn []
123
125
(not highest-permission-role))
124
126
:top-error
125
127
:top )
126
- :role (role-keyword highest-permission-role)
128
+ :role (when-not checking? ( role-keyword highest-permission-role) )
127
129
:error-message (cond
128
130
(empty? selected-addresses) (i18n/label :t/no-addresses-selected )
129
131
(not highest-permission-role) (i18n/label
130
132
:t/addresses-dont-contain-tokens-needed )
131
133
:else nil )}]]))))
134
+
Original file line number Diff line number Diff line change 330
330
highest-permission-role (:type highest-role)
331
331
can-request-access? (and (boolean highest-permission-role) (not networks-not-supported?))]
332
332
{:can-request-access? can-request-access?
333
+ :checking? checking?
333
334
:highest-permission-role highest-permission-role
334
335
:networks-not-supported? networks-not-supported?
335
336
:no-member-permission? (and highest-permission-role
You can’t perform that action at this time.
0 commit comments