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:
belalshehab 2024-07-12 15:07:20 +03:00 committed by Belal Shehab
parent 5db513980f
commit 20f1bfa0ea
1 changed files with 8 additions and 3 deletions

View File

@ -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
}
}
}
}