mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-20 18:48:47 +00:00
fix: make button active as soon as the permission to join check resolves
This commit is contained in:
parent
dbd3e6dc62
commit
9ad27133d0
@ -90,20 +90,20 @@ StatusStackModal {
|
||||
if (root.isInvitationPending)
|
||||
return true
|
||||
|
||||
if (root.requirementsCheckPending || !root.joinPermissionsCheckSuccessful)
|
||||
if (root.requirementsCheckPending && !root.joinPermissionsCheckSuccessful)
|
||||
return false
|
||||
|
||||
if (d.accessType !== Constants.communityChatOnRequestAccess)
|
||||
if (root.joinPermissionsCheckSuccessful || d.accessType !== Constants.communityChatOnRequestAccess)
|
||||
return true
|
||||
|
||||
return d.eligibleToJoinAs !== PermissionTypes.Type.None
|
||||
}
|
||||
loading: root.requirementsCheckPending && !root.isInvitationPending
|
||||
loading: root.requirementsCheckPending && !root.joinPermissionsCheckSuccessful && !root.isInvitationPending
|
||||
tooltip.text: {
|
||||
if (interactive)
|
||||
return ""
|
||||
|
||||
if (root.requirementsCheckPending)
|
||||
if (root.requirementsCheckPending && !root.joinPermissionsCheckSuccessful)
|
||||
return qsTr("Requirements check pending")
|
||||
|
||||
if (!root.joinPermissionsCheckSuccessful)
|
||||
|
Loading…
x
Reference in New Issue
Block a user