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
|
|
|
|
import "../../../../../../imports"
|
|
|
|
import "../../../../../../shared"
|
|
|
|
import "../../../../../../shared/status"
|
|
|
|
|
|
|
|
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
|
|
|
|
accounts: walletModel.accounts
|
|
|
|
currency: walletModel.defaultCurrency
|
|
|
|
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()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|