From 62b0c63965fe0baeea4de7d91f89a47bc7ac96eb Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Thu, 1 Apr 2021 14:34:45 -0400 Subject: [PATCH] feat: add invite button to community menu Fixes #2139 --- ui/app/AppLayouts/Chat/CommunityColumn.qml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ui/app/AppLayouts/Chat/CommunityColumn.qml b/ui/app/AppLayouts/Chat/CommunityColumn.qml index 16184ad63f..f69d4f198b 100644 --- a/ui/app/AppLayouts/Chat/CommunityColumn.qml +++ b/ui/app/AppLayouts/Chat/CommunityColumn.qml @@ -76,6 +76,15 @@ Rectangle { onTriggered: openPopup(createChannelPopup, {communityId: chatsModel.communities.activeCommunity.id}) } + Action { + text: qsTr("Invite People") + enabled: chatsModel.communities.activeCommunity.canManageUsers + icon.source: "../../img/export.svg" + icon.width: 20 + icon.height: 20 + onTriggered: openPopup(inviteFriendsToCommunityPopup, {communityId: chatsModel.communities.activeCommunity.id}) + } + Action { //% "Leave community" text: qsTrId("leave-community")