mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-21 11:08:55 +00:00
fix(performance): Replace FastExpressionRole with JoinRole in AssetsView
This commit is contained in:
parent
94c62dae26
commit
08e46b870e
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user