diff --git a/ui/app/AppLayouts/Chat/panels/communities/CommunityMembersSettingsPanel.qml b/ui/app/AppLayouts/Chat/panels/communities/CommunityMembersSettingsPanel.qml index 7958b14bb2..6a0ab458b3 100644 --- a/ui/app/AppLayouts/Chat/panels/communities/CommunityMembersSettingsPanel.qml +++ b/ui/app/AppLayouts/Chat/panels/communities/CommunityMembersSettingsPanel.qml @@ -16,6 +16,7 @@ import "../../layouts" SettingsPageLayout { id: root + property var rootStore property var membersModel property var bannedMembersModel property var pendingMemberRequestsModel @@ -105,7 +106,7 @@ SettingsPageLayout { CommunityMembersTabPanel { model: root.membersModel - communityMemberContextMenu: root.communityMemberContextMenu + rootStore: root.rootStore placeholderText: { if (root.membersModel.count === 0) { return qsTr("No members to search") @@ -133,7 +134,7 @@ SettingsPageLayout { CommunityMembersTabPanel { model: root.pendingMemberRequestsModel - communityMemberContextMenu: root.communityMemberContextMenu + rootStore: root.rootStore placeholderText: { if (root.pendingMemberRequestsModel.count === 0) { return qsTr("No pending requests to search") @@ -154,7 +155,7 @@ SettingsPageLayout { CommunityMembersTabPanel { model: root.declinedMemberRequestsModel - communityMemberContextMenu: root.communityMemberContextMenu + rootStore: root.rootStore placeholderText: { if (root.declinedMemberRequestsModel.count === 0) { return qsTr("No rejected members to search") @@ -174,7 +175,7 @@ SettingsPageLayout { CommunityMembersTabPanel { model: root.bannedMembersModel - communityMemberContextMenu: root.communityMemberContextMenu + rootStore: root.rootStore placeholderText: { if (root.bannedMembersModel.count === 0) { return qsTr("No banned members to search") diff --git a/ui/app/AppLayouts/Chat/panels/communities/CommunityMembersTabPanel.qml b/ui/app/AppLayouts/Chat/panels/communities/CommunityMembersTabPanel.qml index 2c140b69d8..32392ded92 100644 --- a/ui/app/AppLayouts/Chat/panels/communities/CommunityMembersTabPanel.qml +++ b/ui/app/AppLayouts/Chat/panels/communities/CommunityMembersTabPanel.qml @@ -19,7 +19,7 @@ Item { property string placeholderText property var model - property var communityMemberContextMenu + property var rootStore signal kickUserClicked(string id, string name) signal banUserClicked(string id, string name) diff --git a/ui/app/AppLayouts/Chat/views/CommunitySettingsView.qml b/ui/app/AppLayouts/Chat/views/CommunitySettingsView.qml index 852af45d19..2b6996cfe8 100644 --- a/ui/app/AppLayouts/Chat/views/CommunitySettingsView.qml +++ b/ui/app/AppLayouts/Chat/views/CommunitySettingsView.qml @@ -221,6 +221,7 @@ StatusSectionLayout { } CommunityMembersSettingsPanel { + rootStore: root.rootStore membersModel: root.community.members bannedMembersModel: root.community.bannedMembers pendingMemberRequestsModel: root.community.pendingMemberRequests