status-desktop/ui/imports/shared/popups/SelectAccountModal.qml
Patryk Osmaczko 35a2dd5244 [Popups]: added destroy() function in all popups by default
Also switched StatusModal to derive from StatusDialog instead
of Popup type

Closes #10149
2023-06-02 14:28:39 +03:00

47 lines
1.1 KiB
QML

import QtQuick 2.13
import QtQuick.Controls 2.13
import QtQuick.Layouts 1.13
import QtQuick.Dialogs 1.3
import utils 1.0
import shared.controls 1.0
import StatusQ.Popups 0.1
import StatusQ.Controls 0.1
StatusModal {
id: root
headerSettings.title: qsTr("Select account")
height: 284
property var accounts
property string currency
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: root.accounts
currency: root.currency
width: parent.width
label: qsTr("Select account to share and receive assets")
}
}
}
rightButtons: [
StatusButton {
text: qsTr("Confirm and share address")
onClicked: root.selectAndShareAddressButtonClicked()
}
]
}