2021-10-05 20:50:22 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import QtQuick.Controls 2.14
|
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
2021-10-27 21:27:49 +00:00
|
|
|
import shared 1.0
|
2021-10-05 20:50:22 +00:00
|
|
|
import "../stores"
|
|
|
|
import "../controls"
|
|
|
|
|
|
|
|
Item {
|
2022-03-25 08:46:47 +00:00
|
|
|
property var account
|
|
|
|
|
2021-10-05 20:50:22 +00:00
|
|
|
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
|
|
|
|
spacing: Style.current.padding * 2
|
|
|
|
anchors.fill: parent
|
2022-03-25 08:46:47 +00:00
|
|
|
model: account.assets
|
2021-10-05 20:50:22 +00:00
|
|
|
delegate: AssetDelegate {
|
2021-12-06 21:10:54 +00:00
|
|
|
locale: RootStore.locale
|
2021-10-21 08:22:05 +00:00
|
|
|
currency: RootStore.currentCurrency
|
2021-10-05 20:50:22 +00:00
|
|
|
}
|
|
|
|
boundsBehavior: Flickable.StopAtBounds
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|