mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 22:36:24 +00:00
fix(Communities): fix invite friends modal
This commit is contained in:
parent
629ce86076
commit
4ea80eb248
@ -17,15 +17,15 @@ StatusModal {
|
|||||||
property var community
|
property var community
|
||||||
|
|
||||||
onOpened: {
|
onOpened: {
|
||||||
contentComponent.community = community
|
contentItem.community = community
|
||||||
|
|
||||||
contentComponent.contactListSearch.chatKey.text = ""
|
contentItem.contactListSearch.chatKey.text = ""
|
||||||
contentComponent.contactListSearch.pubKey = ""
|
contentItem.contactListSearch.pubKey = ""
|
||||||
contentComponent.contactListSearch.pubKeys = []
|
contentItem.contactListSearch.pubKeys = []
|
||||||
contentComponent.contactListSearch.ensUsername = ""
|
contentItem.contactListSearch.ensUsername = ""
|
||||||
contentComponent.contactListSearch.chatKey.forceActiveFocus(Qt.MouseFocusReason)
|
contentItem.contactListSearch.chatKey.forceActiveFocus(Qt.MouseFocusReason)
|
||||||
contentComponent.contactListSearch.existingContacts.visible = profileModel.contacts.list.hasAddedContacts()
|
contentItem.contactListSearch.existingContacts.visible = profileModel.contacts.list.hasAddedContacts()
|
||||||
contentComponent.contactListSearch.noContactsRect.visible = !contentComponent.contactListSearch.existingContacts.visible
|
contentItem.contactListSearch.noContactsRect.visible = !contentItem.contactListSearch.existingContacts.visible
|
||||||
}
|
}
|
||||||
|
|
||||||
//% "Invite friends"
|
//% "Invite friends"
|
||||||
@ -56,11 +56,11 @@ StatusModal {
|
|||||||
|
|
||||||
rightButtons: [
|
rightButtons: [
|
||||||
StatusButton {
|
StatusButton {
|
||||||
enabled: popup.contentComponent.contactListSearch.pubKeys.length > 0
|
enabled: popup.contentItem.contactListSearch.pubKeys.length > 0
|
||||||
//% "Invite"
|
//% "Invite"
|
||||||
text: qsTrId("invite-button")
|
text: qsTrId("invite-button")
|
||||||
onClicked : {
|
onClicked : {
|
||||||
popup.contentComponent.sendInvites(popup.contentComponent.contactListSearch.pubKeys)
|
popup.contentItem.sendInvites(popup.contentItem.contactListSearch.pubKeys)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user