mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-23 04:50:28 +00:00
feat: open sendModal when click the send button in wallet popup
This commit is contained in:
parent
4844e47771
commit
b5859fffa8
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -8,6 +8,7 @@ import "../../../shared/status"
|
||||
import "./components"
|
||||
|
||||
ModalPopup {
|
||||
property alias selectFromAccount: selectFromAccount
|
||||
id: root
|
||||
|
||||
//% "Send"
|
||||
|
@ -65,13 +65,6 @@ Item {
|
||||
color: Style.current.secondaryText
|
||||
}
|
||||
|
||||
SendModal{
|
||||
id: sendModal
|
||||
onOpened: {
|
||||
walletModel.getGasPricePredictions()
|
||||
}
|
||||
}
|
||||
|
||||
ReceiveModal{
|
||||
id: receiveModal
|
||||
selectedAccount: currentAccount
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user