2022-03-23 11:08:49 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
import QtQuick.Controls 2.14
|
|
|
|
import QtQuick.Layouts 1.13
|
|
|
|
|
|
|
|
import StatusQ.Popups 0.1
|
|
|
|
import StatusQ.Controls 0.1
|
2022-03-18 14:47:51 +00:00
|
|
|
import StatusQ.Core.Theme 0.1
|
2022-03-23 11:08:49 +00:00
|
|
|
|
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
import "../popups"
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
id: walletFooter
|
|
|
|
|
|
|
|
property var sendModal
|
2022-07-20 11:15:05 +00:00
|
|
|
property var walletStore
|
2022-03-23 11:08:49 +00:00
|
|
|
|
|
|
|
height: 61
|
|
|
|
color: Theme.palette.statusAppLayout.rightPanelBackgroundColor
|
|
|
|
|
|
|
|
StatusModalDivider {
|
|
|
|
anchors.top: parent.top
|
|
|
|
width: parent.width
|
|
|
|
}
|
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
anchors.centerIn: parent
|
2022-03-28 08:19:57 +00:00
|
|
|
height: parent.height
|
2022-03-23 11:08:49 +00:00
|
|
|
spacing: Style.current.padding
|
|
|
|
|
|
|
|
StatusFlatButton {
|
2022-07-21 12:15:02 +00:00
|
|
|
objectName: "walletFooterSendButton"
|
2022-03-23 11:08:49 +00:00
|
|
|
icon.name: "send"
|
2022-04-04 11:26:30 +00:00
|
|
|
text: qsTr("Send")
|
2022-03-23 11:08:49 +00:00
|
|
|
onClicked: function() {
|
|
|
|
sendModal.open()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusFlatButton {
|
|
|
|
icon.name: "receive"
|
2022-04-04 11:26:30 +00:00
|
|
|
text: qsTr("Receive")
|
2022-03-23 11:08:49 +00:00
|
|
|
onClicked: function () {
|
|
|
|
Global.openPopup(receiveModalComponent);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
StatusFlatButton {
|
|
|
|
id: buySellBtn
|
|
|
|
icon.name: "token"
|
2022-04-04 11:26:30 +00:00
|
|
|
text: qsTr("Buy / Sell")
|
2022-03-23 11:08:49 +00:00
|
|
|
onClicked: function () {
|
|
|
|
Global.openPopup(buySellModal);
|
|
|
|
}
|
|
|
|
}
|
2022-11-23 17:58:22 +00:00
|
|
|
|
|
|
|
StatusFlatButton {
|
|
|
|
id: bridgeBtn
|
|
|
|
icon.name: "bridge"
|
|
|
|
text: qsTr("Bridge")
|
|
|
|
onClicked: function () {
|
|
|
|
sendModal.isBridgeTx = true
|
|
|
|
sendModal.open()
|
|
|
|
}
|
|
|
|
}
|
2022-03-23 11:08:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Component {
|
|
|
|
id: receiveModalComponent
|
|
|
|
ReceiveModal {
|
2022-07-20 11:15:05 +00:00
|
|
|
selectedAccount: walletStore.currentAccount
|
2022-03-23 11:08:49 +00:00
|
|
|
anchors.centerIn: parent
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Component {
|
|
|
|
id: buySellModal
|
|
|
|
CryptoServicesModal {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|