From 4ea80eb248e99995523e5fefb0721e8f40775bfe Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Tue, 7 Sep 2021 15:45:00 +0200 Subject: [PATCH] fix(Communities): fix invite friends modal --- .../InviteFriendsToCommunityPopup.qml | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/InviteFriendsToCommunityPopup.qml b/ui/app/AppLayouts/Chat/CommunityComponents/InviteFriendsToCommunityPopup.qml index 30a54681b3..9d175a7037 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/InviteFriendsToCommunityPopup.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/InviteFriendsToCommunityPopup.qml @@ -17,15 +17,15 @@ StatusModal { property var community onOpened: { - contentComponent.community = community + contentItem.community = community - contentComponent.contactListSearch.chatKey.text = "" - contentComponent.contactListSearch.pubKey = "" - contentComponent.contactListSearch.pubKeys = [] - contentComponent.contactListSearch.ensUsername = "" - contentComponent.contactListSearch.chatKey.forceActiveFocus(Qt.MouseFocusReason) - contentComponent.contactListSearch.existingContacts.visible = profileModel.contacts.list.hasAddedContacts() - contentComponent.contactListSearch.noContactsRect.visible = !contentComponent.contactListSearch.existingContacts.visible + contentItem.contactListSearch.chatKey.text = "" + contentItem.contactListSearch.pubKey = "" + contentItem.contactListSearch.pubKeys = [] + contentItem.contactListSearch.ensUsername = "" + contentItem.contactListSearch.chatKey.forceActiveFocus(Qt.MouseFocusReason) + contentItem.contactListSearch.existingContacts.visible = profileModel.contacts.list.hasAddedContacts() + contentItem.contactListSearch.noContactsRect.visible = !contentItem.contactListSearch.existingContacts.visible } //% "Invite friends" @@ -56,11 +56,11 @@ StatusModal { rightButtons: [ StatusButton { - enabled: popup.contentComponent.contactListSearch.pubKeys.length > 0 + enabled: popup.contentItem.contactListSearch.pubKeys.length > 0 //% "Invite" text: qsTrId("invite-button") onClicked : { - popup.contentComponent.sendInvites(popup.contentComponent.contactListSearch.pubKeys) + popup.contentItem.sendInvites(popup.contentItem.contactListSearch.pubKeys) } } ]