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