diff --git a/ui/app/AppLayouts/Communities/panels/MembersSettingsPanel.qml b/ui/app/AppLayouts/Communities/panels/MembersSettingsPanel.qml index bebcd60a57..d381494a6e 100644 --- a/ui/app/AppLayouts/Communities/panels/MembersSettingsPanel.qml +++ b/ui/app/AppLayouts/Communities/panels/MembersSettingsPanel.qml @@ -33,6 +33,7 @@ SettingsPage { signal acceptRequestToJoin(string id) signal declineRequestToJoin(string id) signal viewMemberMessagesClicked(string pubKey, string displayName) + signal inviteNewPeopleClicked() function goTo(tab: int) { if(root.contentItem) { @@ -42,6 +43,13 @@ SettingsPage { title: qsTr("Members") + buttons: [ + StatusButton { + text: qsTr("Invite people") + onClicked: root.inviteNewPeopleClicked() + } + ] + contentItem: ColumnLayout { function goTo(tab: int) { diff --git a/ui/app/AppLayouts/Communities/panels/OverviewSettingsPanel.qml b/ui/app/AppLayouts/Communities/panels/OverviewSettingsPanel.qml index 45acc5be93..dbda4227de 100644 --- a/ui/app/AppLayouts/Communities/panels/OverviewSettingsPanel.qml +++ b/ui/app/AppLayouts/Communities/panels/OverviewSettingsPanel.qml @@ -74,7 +74,6 @@ StackLayout { signal edited(Item item) // item containing edited fields (name, description, logoImagePath, color, options, etc..) - signal inviteNewPeopleClicked signal airdropTokensClicked signal exportControlNodeClicked signal importControlNodeClicked @@ -369,6 +368,7 @@ StackLayout { id: transferOwnershipAlertPopup TransferOwnershipAlertPopup { + destroyOnClose: true communityName: root.name communityLogo: root.logoImageData diff --git a/ui/app/AppLayouts/Communities/views/CommunitySettingsView.qml b/ui/app/AppLayouts/Communities/views/CommunitySettingsView.qml index 7dd2ac01dd..b977df8497 100644 --- a/ui/app/AppLayouts/Communities/views/CommunitySettingsView.qml +++ b/ui/app/AppLayouts/Communities/views/CommunitySettingsView.qml @@ -253,12 +253,6 @@ StatusSectionLayout { } } - onInviteNewPeopleClicked: { - Global.openInviteFriendsToCommunityPopup(root.community, - root.chatCommunitySectionModule, - null) - } - onAirdropTokensClicked: root.goTo(Constants.CommunitySettingsSections.Airdrops) onExportControlNodeClicked: { if(!root.isControlNode) @@ -316,6 +310,7 @@ StatusSectionLayout { root.rootStore.loadCommunityMemberMessages(root.community.id, pubKey) Global.openCommunityMemberMessagesPopupRequested(root.rootStore, root.chatCommunitySectionModule, pubKey, displayName) } + onInviteNewPeopleClicked: Global.openInviteFriendsToCommunityPopup(root.community, root.chatCommunitySectionModule, null) } }