status-desktop/ui/app/AppLayouts/Chat/popups/SelectAccountModal.qml

49 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 utils 1.0
import StatusQ.Popups 0.1
import StatusQ.Controls 0.1
import "../../../../shared/controls"
StatusModal {
id: root
2021-02-18 16:36:05 +00:00
//% "Select account"
header.title: qsTrId("select-account")
height: 284
property alias accountSelector: selectFromAccount
signal selectAndShareAddressButtonClicked()
contentItem: Item {
width: root.width
height: childrenRect.height
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")
}
}
}
rightButtons: [
StatusButton {
2021-02-18 16:36:05 +00:00
//% "Confirm and share address"
text: qsTrId("confirm-and-share-address")
onClicked: root.selectAndShareAddressButtonClicked()
}
]
}