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
|
2023-04-04 11:31:04 +00:00
|
|
|
import shared.controls 1.0
|
2022-03-23 11:08:49 +00:00
|
|
|
|
2023-03-15 09:17:25 +00:00
|
|
|
import "../controls"
|
2023-04-26 15:53:49 +00:00
|
|
|
import "../popups"
|
2022-03-23 11:08:49 +00:00
|
|
|
|
|
|
|
Rectangle {
|
2023-04-26 15:53:49 +00:00
|
|
|
id: root
|
2022-03-23 11:08:49 +00:00
|
|
|
|
|
|
|
property var sendModal
|
2022-07-20 11:15:05 +00:00
|
|
|
property var walletStore
|
2023-03-15 09:17:25 +00:00
|
|
|
property var networkConnectionStore
|
2022-03-23 11:08:49 +00:00
|
|
|
|
2023-04-26 15:53:49 +00:00
|
|
|
signal launchShareAddressModal()
|
|
|
|
|
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
|
|
|
|
|
2023-04-04 11:31:04 +00:00
|
|
|
DisabledTooltipButton {
|
|
|
|
buttonType: DisabledTooltipButton.Flat
|
|
|
|
aliasedObjectName: "walletFooterSendButton"
|
|
|
|
icon: "send"
|
|
|
|
text: qsTr("Send")
|
|
|
|
interactive: networkConnectionStore.sendBuyBridgeEnabled
|
|
|
|
onClicked: function() {
|
2022-03-23 11:08:49 +00:00
|
|
|
sendModal.open()
|
|
|
|
}
|
2023-03-15 09:17:25 +00:00
|
|
|
tooltipText: networkConnectionStore.sendBuyBridgeToolTipText
|
2023-05-24 12:11:12 +00:00
|
|
|
visible: !walletStore.overview.isWatchOnlyAccount
|
2022-03-23 11:08:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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 () {
|
2023-04-26 15:53:49 +00:00
|
|
|
launchShareAddressModal()
|
2022-03-23 11:08:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-04 11:31:04 +00:00
|
|
|
DisabledTooltipButton {
|
|
|
|
icon: "bridge"
|
|
|
|
buttonType: DisabledTooltipButton.Flat
|
|
|
|
text: qsTr("Bridge")
|
|
|
|
interactive: networkConnectionStore.sendBuyBridgeEnabled
|
|
|
|
onClicked: function() {
|
2022-11-23 17:58:22 +00:00
|
|
|
sendModal.isBridgeTx = true
|
|
|
|
sendModal.open()
|
|
|
|
}
|
2023-03-15 09:17:25 +00:00
|
|
|
tooltipText: networkConnectionStore.sendBuyBridgeToolTipText
|
2023-05-24 12:11:12 +00:00
|
|
|
visible: !walletStore.overview.isWatchOnlyAccount
|
2022-11-23 17:58:22 +00:00
|
|
|
}
|
2022-12-13 13:42:52 +00:00
|
|
|
|
|
|
|
StatusFlatButton {
|
|
|
|
id: buySellBtn
|
|
|
|
icon.name: "token"
|
|
|
|
text: qsTr("Buy")
|
|
|
|
onClicked: function () {
|
|
|
|
Global.openPopup(buySellModal);
|
|
|
|
}
|
|
|
|
}
|
2022-03-23 11:08:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Component {
|
|
|
|
id: buySellModal
|
|
|
|
CryptoServicesModal {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|