chore: Use correct unique key for collectibles (#15736)
This commit is contained in:
parent
c2a8817a80
commit
2175311c86
|
@ -32,7 +32,7 @@ QObject {
|
||||||
/**
|
/**
|
||||||
Expected model structure:
|
Expected model structure:
|
||||||
|
|
||||||
tokenId [string] - unique identifier of a collectible
|
symbol [string] - unique identifier of a collectible
|
||||||
collectionUid [string] - unique identifier of a collection
|
collectionUid [string] - unique identifier of a collection
|
||||||
contractAddress [string] - collectible's contract address
|
contractAddress [string] - collectible's contract address
|
||||||
name [string] - collectible's name e.g. "Magicat"
|
name [string] - collectible's name e.g. "Magicat"
|
||||||
|
@ -75,7 +75,7 @@ QObject {
|
||||||
? model.communityId
|
? model.communityId
|
||||||
: model.collectionUid
|
: model.collectionUid
|
||||||
|
|
||||||
readonly property string key: model.tokenId
|
readonly property string key: model.symbol
|
||||||
|
|
||||||
readonly property url icon:
|
readonly property url icon:
|
||||||
model.imageUrl || model.mediaUrl || Qt.resolvedUrl("")
|
model.imageUrl || model.mediaUrl || Qt.resolvedUrl("")
|
||||||
|
@ -101,7 +101,7 @@ QObject {
|
||||||
|
|
||||||
expectedRoles: [
|
expectedRoles: [
|
||||||
"ownership", "communityId", "collectionUid", "imageUrl",
|
"ownership", "communityId", "collectionUid", "imageUrl",
|
||||||
"mediaUrl", "tokenId"
|
"mediaUrl", "symbol"
|
||||||
]
|
]
|
||||||
exposedRoles: ["balance", "groupingValue", "icon", "key"]
|
exposedRoles: ["balance", "groupingValue", "icon", "key"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue