fix(Communities): fix invite friends modal

This commit is contained in:
Pascal Precht 2021-09-07 15:45:00 +02:00 committed by RichΛrd
parent 629ce86076
commit 4ea80eb248
1 changed files with 10 additions and 10 deletions

View File

@ -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)
} }
} }
] ]