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
|
2020-10-21 12:30:41 +00:00
|
|
|
import "../../../../../../shared"
|
2021-10-14 10:12:22 +00:00
|
|
|
import "../../../../../../shared/controls"
|
2021-10-14 11:33:34 +00:00
|
|
|
import "../../../../../../shared/popups"
|
2020-10-21 12:30:41 +00:00
|
|
|
import "../../../../../../shared/status"
|
|
|
|
|
2021-10-14 11:33:34 +00:00
|
|
|
// TODO: replace with StatusModal
|
2020-10-21 12:30:41 +00:00
|
|
|
ModalPopup {
|
|
|
|
id: root
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "Select account"
|
|
|
|
title: qsTrId("select-account")
|
2020-10-21 12:30:41 +00:00
|
|
|
height: 284
|
|
|
|
property alias accountSelector: selectFromAccount
|
|
|
|
signal selectAndShareAddressButtonClicked()
|
|
|
|
|
|
|
|
TransactionFormGroup {
|
|
|
|
anchors.fill: parent
|
|
|
|
anchors.leftMargin: Style.current.padding
|
|
|
|
anchors.rightMargin: Style.current.padding
|
|
|
|
AccountSelector {
|
|
|
|
id: selectFromAccount
|
2021-06-08 12:48:31 +00:00
|
|
|
accounts: walletModel.accountsView.accounts
|
|
|
|
currency: walletModel.balanceView.defaultCurrency
|
2020-10-21 12:30:41 +00:00
|
|
|
width: parent.width
|
|
|
|
//% "Choose account"
|
2021-02-18 16:36:05 +00:00
|
|
|
//% "Select account to share and receive assets"
|
|
|
|
label: qsTrId("select-account-to-share-and-receive-assets")
|
2020-10-21 12:30:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
footer: Item {
|
|
|
|
id: footerContainer
|
|
|
|
width: parent.width
|
|
|
|
height: children[0].height
|
|
|
|
|
|
|
|
StatusButton {
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: Style.current.smallPadding
|
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
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
onClicked: root.selectAndShareAddressButtonClicked()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|