From ceee23024492a63f322240d85016a3d741444181 Mon Sep 17 00:00:00 2001 From: Godfrain Jacques Date: Tue, 7 May 2024 06:58:15 -0700 Subject: [PATCH] fix: Token Master permission missing token name (#14609) --- .../panels/PermissionsSettingsPanel.qml | 14 +++++++++++++- .../Communities/views/CommunitySettingsView.qml | 13 +------------ 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/ui/app/AppLayouts/Communities/panels/PermissionsSettingsPanel.qml b/ui/app/AppLayouts/Communities/panels/PermissionsSettingsPanel.qml index 9646e00f1f..632df91d4a 100644 --- a/ui/app/AppLayouts/Communities/panels/PermissionsSettingsPanel.qml +++ b/ui/app/AppLayouts/Communities/panels/PermissionsSettingsPanel.qml @@ -184,8 +184,20 @@ StackView { viewWidth: root.viewWidth + SortFilterProxyModel { + id: nonOwnerCollectibles + sourceModel: root.collectiblesModel + filters: [ + ValueFilter { + roleName: "privilegesLevel" + value: Constants.TokenPrivilegesLevel.Owner + inverted: true + } + ] + } + assetsModel: root.assetsModel - collectiblesModel: root.collectiblesModel + collectiblesModel: nonOwnerCollectibles channelsModel: allChannelsTransformed communityDetails: root.communityDetails showChannelSelector: root.showChannelSelector diff --git a/ui/app/AppLayouts/Communities/views/CommunitySettingsView.qml b/ui/app/AppLayouts/Communities/views/CommunitySettingsView.qml index 23bf3fb777..c3230d89f5 100644 --- a/ui/app/AppLayouts/Communities/views/CommunitySettingsView.qml +++ b/ui/app/AppLayouts/Communities/views/CommunitySettingsView.qml @@ -304,18 +304,7 @@ StatusSectionLayout { assetsModel: rootStore.assetsModel - SortFilterProxyModel { - id: nonOwnerCollectibles - sourceModel: rootStore.collectiblesModel - filters: [ - ValueFilter { - roleName: "privilegesLevel" - value: Constants.TokenPrivilegesLevel.Owner - inverted: true - } - ] - } - collectiblesModel: nonOwnerCollectibles + collectiblesModel: rootStore.collectiblesModel channelsModel: rootStore.chatCommunitySectionModule.model communityDetails: d.communityDetails