2020-10-21 12:30:41 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
|
|
|
import QtQuick.Dialogs 1.3
|
2021-09-28 15:04:06 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
2021-10-27 21:27:49 +00:00
|
|
|
import shared.controls 1.0
|
2021-10-18 12:50:47 +00:00
|
|
|
|
|
|
|
import StatusQ.Popups 0.1
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
|
|
|
|
StatusModal {
|
2020-10-21 12:30:41 +00:00
|
|
|
id: root
|
2023-05-23 12:46:16 +00:00
|
|
|
headerSettings.title: qsTr("Select account")
|
2020-10-21 12:30:41 +00:00
|
|
|
height: 284
|
2021-10-22 20:49:47 +00:00
|
|
|
|
|
|
|
property var accounts
|
|
|
|
property string currency
|
2020-10-21 12:30:41 +00:00
|
|
|
property alias accountSelector: selectFromAccount
|
|
|
|
signal selectAndShareAddressButtonClicked()
|
|
|
|
|
2021-10-18 12:50:47 +00:00
|
|
|
contentItem: Item {
|
|
|
|
width: root.width
|
|
|
|
height: childrenRect.height
|
2020-10-21 12:30:41 +00:00
|
|
|
|
2021-10-18 12:50:47 +00:00
|
|
|
TransactionFormGroup {
|
|
|
|
anchors.fill: parent
|
|
|
|
anchors.leftMargin: Style.current.padding
|
|
|
|
anchors.rightMargin: Style.current.padding
|
|
|
|
StatusAccountSelector {
|
|
|
|
id: selectFromAccount
|
2021-10-22 20:49:47 +00:00
|
|
|
accounts: root.accounts
|
|
|
|
currency: root.currency
|
2021-10-18 12:50:47 +00:00
|
|
|
width: parent.width
|
2022-04-04 11:26:30 +00:00
|
|
|
label: qsTr("Select account to share and receive assets")
|
2021-10-18 12:50:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-10-21 12:30:41 +00:00
|
|
|
|
2021-10-18 12:50:47 +00:00
|
|
|
rightButtons: [
|
2020-10-21 12:30:41 +00:00
|
|
|
StatusButton {
|
2022-04-04 11:26:30 +00:00
|
|
|
text: qsTr("Confirm and share address")
|
2020-10-21 12:30:41 +00:00
|
|
|
onClicked: root.selectAndShareAddressButtonClicked()
|
|
|
|
}
|
2021-10-18 12:50:47 +00:00
|
|
|
]
|
2020-10-21 12:30:41 +00:00
|
|
|
}
|