feat(shared/controls): Moved foldable header and generic list view from wallet to shared
Renamed `ManageTokensListViewBase` to `EmptyShapeRectangleFooterListView` and moved `FoldableHeader` to shared/controls. Updated related `ManageXXPanel` components.
This commit is contained in:
parent
32feaff6d7
commit
d5134fe864
|
@ -8,7 +8,7 @@ import StatusQ.Core.Utils 0.1
|
|||
|
||||
import AppLayouts.Wallet.controls 1.0
|
||||
|
||||
import "internals"
|
||||
import shared.controls 1.0
|
||||
|
||||
DoubleFlickableWithFolding {
|
||||
id: root
|
||||
|
@ -46,7 +46,7 @@ DoubleFlickableWithFolding {
|
|||
visible: resolveVisibility(policy, root.height, root.contentHeight)
|
||||
}
|
||||
|
||||
flickable1: ManageTokensListViewBase {
|
||||
flickable1: EmptyShapeRectangleFooterListView {
|
||||
model: root.controller.regularTokensModel
|
||||
width: root.width
|
||||
|
||||
|
@ -74,7 +74,7 @@ DoubleFlickableWithFolding {
|
|||
placeholderText: qsTr("Your assets will appear here")
|
||||
}
|
||||
|
||||
flickable2: ManageTokensListViewBase {
|
||||
flickable2: EmptyShapeRectangleFooterListView {
|
||||
width: root.width
|
||||
|
||||
model: root.controller.arrangeByCommunity ? communityGroupedModel
|
||||
|
|
|
@ -8,7 +8,7 @@ import StatusQ.Core.Utils 0.1
|
|||
|
||||
import AppLayouts.Wallet.controls 1.0
|
||||
|
||||
import "internals"
|
||||
import shared.controls 1.0
|
||||
|
||||
DoubleFlickableWithFolding {
|
||||
id: root
|
||||
|
@ -37,7 +37,7 @@ DoubleFlickableWithFolding {
|
|||
visible: resolveVisibility(policy, root.height, root.contentHeight)
|
||||
}
|
||||
|
||||
flickable1: ManageTokensListViewBase {
|
||||
flickable1: EmptyShapeRectangleFooterListView {
|
||||
objectName: "communityTokensListView"
|
||||
|
||||
width: root.width
|
||||
|
@ -61,7 +61,7 @@ DoubleFlickableWithFolding {
|
|||
placeholderText: qsTr("Your community minted collectibles will appear here")
|
||||
}
|
||||
|
||||
flickable2: ManageTokensListViewBase {
|
||||
flickable2: EmptyShapeRectangleFooterListView {
|
||||
objectName: "otherTokensListView"
|
||||
|
||||
width: root.width
|
||||
|
|
|
@ -1,36 +1,29 @@
|
|||
import QtQuick 2.15
|
||||
import QtQuick.Layouts 1.15
|
||||
import QtQuick.Controls 2.15
|
||||
import QtQml 2.15
|
||||
|
||||
import StatusQ.Controls 0.1
|
||||
import StatusQ.Core 0.1
|
||||
import QtQuick.Controls 2.15
|
||||
import StatusQ.Core.Theme 0.1
|
||||
|
||||
import shared.controls 1.0
|
||||
|
||||
StatusListView {
|
||||
id: root
|
||||
|
||||
property string placeholderText
|
||||
property int placeholderHeight: 44
|
||||
|
||||
// TO BE REMOVE: #13498
|
||||
property bool empty: root.model && root.count === 0
|
||||
|
||||
ScrollBar.vertical: null
|
||||
|
||||
QtObject {
|
||||
id: d
|
||||
|
||||
readonly property int placeholderHeight: 44
|
||||
}
|
||||
|
||||
Binding {
|
||||
when: root.model && root.count === 0
|
||||
when: root.empty// TO BE REPLACE by (#13498): root.model && root.count === 0
|
||||
target: root
|
||||
property: "footer"
|
||||
restoreMode: Binding.RestoreBindingOrValue
|
||||
|
||||
value: Component {
|
||||
Item {
|
||||
height: d.placeholderHeight
|
||||
height: root.placeholderHeight
|
||||
width: root.width
|
||||
|
||||
ShapeRectangle {
|
|
@ -10,7 +10,9 @@ CopyToClipBoardButton 1.0 CopyToClipBoardButton.qml
|
|||
CurrencyAmountInput 1.0 CurrencyAmountInput.qml
|
||||
DisabledTooltipButton 1.0 DisabledTooltipButton.qml
|
||||
EmojiHash 1.0 EmojiHash.qml
|
||||
EmptyShapeRectangleFooterListView 1.0 EmptyShapeRectangleFooterListView.qml
|
||||
ErrorDetails 1.0 ErrorDetails.qml
|
||||
FoldableHeader 1.0 FoldableHeader.qml
|
||||
FormGroup 1.0 FormGroup.qml
|
||||
GetSyncCodeDesktopInstructions 1.0 GetSyncCodeDesktopInstructions.qml
|
||||
GetSyncCodeMobileInstructions 1.0 GetSyncCodeMobileInstructions.qml
|
||||
|
|
Loading…
Reference in New Issue