2021-10-05 22:50:22 +02:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import QtQuick.Controls 2.14
|
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
2021-10-28 00:27:49 +03:00
|
|
|
import shared 1.0
|
2021-10-05 22:50:22 +02:00
|
|
|
import "../stores"
|
|
|
|
import "../controls"
|
|
|
|
|
|
|
|
Item {
|
2022-03-25 09:46:47 +01:00
|
|
|
property var account
|
|
|
|
|
2021-10-05 22:50:22 +02: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 09:46:47 +01:00
|
|
|
model: account.assets
|
2021-10-05 22:50:22 +02:00
|
|
|
delegate: AssetDelegate {
|
2021-12-06 23:10:54 +02:00
|
|
|
locale: RootStore.locale
|
2021-10-21 10:22:05 +02:00
|
|
|
currency: RootStore.currentCurrency
|
2021-10-05 22:50:22 +02:00
|
|
|
}
|
|
|
|
boundsBehavior: Flickable.StopAtBounds
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|