Anthony Laibe e7dff15a97 fix(@wallet): send modal in browser/wallet
fixes #5937

The send modal reuse the asset list so it needs to be fully populated
with all token, but the token is only visible if the balance > 0
2022-05-31 14:57:37 +02:00

35 lines
847 B
QML

import QtQuick 2.13
import QtQuick.Layouts 1.3
import QtQuick.Controls 2.14
import utils 1.0
import shared 1.0
import "../stores"
import "../controls"
Item {
property var account
height: assetListView.height
ScrollView {
anchors.fill: parent
Layout.fillWidth: true
Layout.fillHeight: true
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
ScrollBar.vertical.policy: assetListView.contentHeight > assetListView.height ? ScrollBar.AlwaysOn : ScrollBar.AlwaysOff
ListView {
id: assetListView
anchors.fill: parent
model: account.assets
delegate: AssetDelegate {
locale: RootStore.locale
currency: RootStore.currentCurrency
}
boundsBehavior: Flickable.StopAtBounds
}
}
}