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-18 12:50:47 +00:00
|
|
|
|
|
|
|
import StatusQ.Popups 0.1
|
|
|
|
import StatusQ.Controls 0.1
|
|
|
|
|
2021-10-01 15:58:36 +00:00
|
|
|
import "../../../../shared/controls"
|
2020-10-21 12:30:41 +00:00
|
|
|
|
2021-10-18 12:50:47 +00:00
|
|
|
StatusModal {
|
2020-10-21 12:30:41 +00:00
|
|
|
id: root
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "Select account"
|
2021-10-18 12:50:47 +00:00
|
|
|
header.title: qsTrId("select-account")
|
2020-10-21 12:30:41 +00:00
|
|
|
height: 284
|
|
|
|
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
|
|
|
|
accounts: walletModel.accountsView.accounts
|
|
|
|
currency: walletModel.balanceView.defaultCurrency
|
|
|
|
width: parent.width
|
|
|
|
//% "Choose account"
|
|
|
|
//% "Select account to share and receive assets"
|
|
|
|
label: qsTrId("select-account-to-share-and-receive-assets")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
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 {
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "Confirm and share address"
|
|
|
|
text: qsTrId("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
|
|
|
}
|