status-desktop/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/TransactionComponents/SelectAccountModal.qml

47 lines
1.3 KiB
QML
Raw Normal View History

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")
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")
}
}
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")
anchors.bottom: parent.bottom
onClicked: root.selectAndShareAddressButtonClicked()
}
}
}