aboutsummaryrefslogtreecommitdiff
path: root/LeftPanel.qml
diff options
context:
space:
mode:
authordsc <xmrdsc@protonmail.com>2018-12-08 16:55:29 +0100
committerskftn <sa.ferdinand@gmail.com>2018-12-29 18:08:21 +0100
commit85cd428dcb46763e626c1c9bae1c27b44d617d4f (patch)
treed420b15fd9e02f04c60a37b86dc688a421ad0cdf /LeftPanel.qml
parent48a267f631c18d3159cccfc551d72cc5aeb0df03 (diff)
downloadmonzero-gui-85cd428dcb46763e626c1c9bae1c27b44d617d4f.tar.gz
monzero-gui-85cd428dcb46763e626c1c9bae1c27b44d617d4f.tar.xz
monzero-gui-85cd428dcb46763e626c1c9bae1c27b44d617d4f.zip
Merchant page
Diffstat (limited to 'LeftPanel.qml')
-rw-r--r--LeftPanel.qml28
1 files changed, 28 insertions, 0 deletions
diff --git a/LeftPanel.qml b/LeftPanel.qml
index d7cd0ee8..16b1a8f9 100644
--- a/LeftPanel.qml
+++ b/LeftPanel.qml
@@ -61,6 +61,7 @@ Rectangle {
signal miningClicked()
signal signClicked()
signal keysClicked()
+ signal merchantClicked()
function selectItem(pos) {
menuColumn.previousButton.checked = false
@@ -68,6 +69,7 @@ Rectangle {
else if(pos === "History") menuColumn.previousButton = historyButton
else if(pos === "Transfer") menuColumn.previousButton = transferButton
else if(pos === "Receive") menuColumn.previousButton = receiveButton
+ else if(pos === "Merchant") menuColumn.previousButton = merchantButton
else if(pos === "AddressBook") menuColumn.previousButton = addressBookButton
else if(pos === "Mining") menuColumn.previousButton = miningButton
else if(pos === "TxKey") menuColumn.previousButton = txkeyButton
@@ -446,6 +448,32 @@ Rectangle {
height: 1
}
+ // ------------- Merchant tab ---------------
+
+ MoneroComponents.MenuButton {
+ id: merchantButton
+ anchors.left: parent.left
+ anchors.right: parent.right
+ text: qsTr("Merchant") + translationManager.emptyString
+ symbol: qsTr("U") + translationManager.emptyString
+ dotColor: "#FF4F41"
+ under: receiveButton
+ onClicked: {
+ parent.previousButton.checked = false
+ parent.previousButton = merchantButton
+ panel.merchantClicked()
+ }
+ }
+
+ Rectangle {
+ visible: merchantButton.present
+ anchors.left: parent.left
+ anchors.right: parent.right
+ anchors.leftMargin: 16
+ color: "#313131"
+ height: 1
+ }
+
// ------------- History tab ---------------
MoneroComponents.MenuButton {