feat: open sendModal when click the send button in wallet popup

This commit is contained in:
Jonathan Rainville 2020-10-15 14:57:43 -04:00 committed by Iuri Matias
parent 4844e47771
commit b5859fffa8
4 changed files with 14 additions and 8 deletions

View File

@ -134,7 +134,10 @@ Popup {
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
iconColor: Style.current.primary
onClicked: console.log("Send Tx")
onClicked: {
sendModal.selectFromAccount.selectedAccount = accountSelector.selectedAccount
sendModal.open()
}
}
}

View File

@ -8,6 +8,7 @@ import "../../../shared/status"
import "./components"
ModalPopup {
property alias selectFromAccount: selectFromAccount
id: root
//% "Send"

View File

@ -65,13 +65,6 @@ Item {
color: Style.current.secondaryText
}
SendModal{
id: sendModal
onOpened: {
walletModel.getGasPricePredictions()
}
}
ReceiveModal{
id: receiveModal
selectedAccount: currentAccount

View File

@ -4,6 +4,7 @@ import QtQuick.Layouts 1.13
import "../imports"
import "../shared"
import "./AppLayouts"
import "./AppLayouts/Wallet"
RowLayout {
id: appMain
@ -15,6 +16,14 @@ RowLayout {
id: toastMessage
}
// Add SenmdModal here as it is used by the Wallet as well as the Browser
SendModal{
id: sendModal
onOpened: {
walletModel.getGasPricePredictions()
}
}
TabBar {
id: tabBar
width: 78