fix(performance): Replace FastExpressionRole with JoinRole in AssetsView

This commit is contained in:
Alex Jbanca 2024-09-06 14:11:27 +03:00
parent 94c62dae26
commit 08e46b870e
No known key found for this signature in database
GPG Key ID: 6004079575C21C5D
1 changed files with 5 additions and 4 deletions

View File

@ -95,10 +95,10 @@ Control {
proxyRoles: [ proxyRoles: [
// helper role for rendering section delegate // helper role for rendering section delegate
FastExpressionRole { JoinRole {
name: "isCommunity" name: "isCommunity"
expression: !!communityId ? "community" : "" roleNames: ["communityId"]
expectedRoles: ["communityId"] separator: ""
}, },
FastExpressionRole { FastExpressionRole {
name: "marketBalance" name: "marketBalance"
@ -252,7 +252,8 @@ Control {
model: root.loading ? loadingModel : regularModel model: root.loading ? loadingModel : regularModel
section { section {
property: "isCommunity" property: "communityId"
criteria: ViewSection.FirstCharacter
delegate: AssetsSectionDelegate { delegate: AssetsSectionDelegate {
width: parent.width width: parent.width
text: qsTr("Community minted") text: qsTr("Community minted")