fix: Community admins will review request text is visible even after joining (#19218)
This commit is contained in:
parent
0fdb599d93
commit
c2f0060a47
|
@ -179,7 +179,7 @@
|
||||||
(i18n/label :t/join-open-community)]])))
|
(i18n/label :t/join-open-community)]])))
|
||||||
|
|
||||||
(defn- join-community
|
(defn- join-community
|
||||||
[{:keys [id joined permissions role-permissions? can-join?] :as community}]
|
[{:keys [id joined permissions can-request-access?] :as community}]
|
||||||
(let [pending? (rf/sub [:communities/my-pending-request-to-join id])
|
(let [pending? (rf/sub [:communities/my-pending-request-to-join id])
|
||||||
access-type (get-access-type (:access permissions))
|
access-type (get-access-type (:access permissions))
|
||||||
unknown-access? (= access-type :unknown-access)
|
unknown-access? (= access-type :unknown-access)
|
||||||
|
@ -187,7 +187,7 @@
|
||||||
[:<>
|
[:<>
|
||||||
(when-not (or joined pending? invite-only? unknown-access?)
|
(when-not (or joined pending? invite-only? unknown-access?)
|
||||||
[token-requirements community])
|
[token-requirements community])
|
||||||
(when (not (or pending? role-permissions? can-join?))
|
(when (and can-request-access? (not joined))
|
||||||
[quo/text
|
[quo/text
|
||||||
{:size :paragraph-2
|
{:size :paragraph-2
|
||||||
:weight :regular
|
:weight :regular
|
||||||
|
|
Loading…
Reference in New Issue