fix(wallet)_: filter out non-transferable collectibles in send modal
Description: Enhanced the SendModal.qml to filter out non-transferable (soulbound) collectibles from the send model. This ensures that only transferable collectibles are displayed when sending. Changes: Updated SendModal.qml to include a SortFilterProxyModel with a ValueFilter. The ValueFilter targets the soulbound role and filters out collectibles with soulbound set to false. Issue: Closes #14578
This commit is contained in:
parent
5db513980f
commit
20f1bfa0ea
|
@ -328,9 +328,14 @@ StatusDialog {
|
|||
|
||||
sourceComponent: CollectiblesSelectionAdaptor {
|
||||
accountKey: popup.preSelectedAccount ? popup.preSelectedAccount.address : ""
|
||||
collectiblesModel: collectiblesStore
|
||||
? collectiblesStore.jointCollectiblesBySymbolModel
|
||||
: null
|
||||
|
||||
collectiblesModel: SortFilterProxyModel {
|
||||
sourceModel: collectiblesStore ? collectiblesStore.jointCollectiblesBySymbolModel : null
|
||||
filters: ValueFilter {
|
||||
roleName: "soulbound"
|
||||
value: false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue