fix(performance): Replace FastExpressionRole with JoinRole in AssetsView
This commit is contained in:
parent
94c62dae26
commit
08e46b870e
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue