feat: add invite button to community menu

Fixes #2139
This commit is contained in:
Jonathan Rainville 2021-04-01 14:34:45 -04:00 committed by Iuri Matias
parent 4af1135f6c
commit 62b0c63965
1 changed files with 9 additions and 0 deletions

View File

@ -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")