2024-06-10 13:32:37 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
|
|
|
|
import StatusQ.Popups 0.1
|
|
|
|
|
|
|
|
StatusMenu {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
property bool sendEnabled: true
|
|
|
|
property bool swapEnabled: true
|
|
|
|
|
|
|
|
property bool swapVisible: true
|
|
|
|
property bool hideVisible: true
|
|
|
|
property bool communityHideVisible: true
|
|
|
|
|
|
|
|
signal sendRequested
|
|
|
|
signal receiveRequested
|
|
|
|
signal swapRequested
|
|
|
|
signal hideRequested
|
|
|
|
signal communityHideRequested
|
|
|
|
signal manageTokensRequested
|
|
|
|
|
|
|
|
StatusAction {
|
2024-07-30 08:15:14 +00:00
|
|
|
objectName: "sendMenuItem"
|
2024-06-10 13:32:37 +00:00
|
|
|
enabled: root.sendEnabled
|
|
|
|
visibleOnDisabled: true
|
|
|
|
icon.name: "send"
|
|
|
|
text: qsTr("Send")
|
|
|
|
onTriggered: root.sendRequested()
|
|
|
|
}
|
|
|
|
StatusAction {
|
2024-07-30 08:15:14 +00:00
|
|
|
objectName: "receiveMenuItem"
|
2024-06-10 13:32:37 +00:00
|
|
|
icon.name: "receive"
|
|
|
|
text: qsTr("Receive")
|
|
|
|
onTriggered: root.receiveRequested()
|
|
|
|
}
|
|
|
|
StatusAction {
|
|
|
|
icon.name: "swap"
|
|
|
|
text: qsTr("Swap")
|
|
|
|
enabled: root.swapEnabled && root.swapVisible
|
|
|
|
visibleOnDisabled: root.swapVisible
|
|
|
|
onTriggered: root.swapRequested()
|
|
|
|
}
|
|
|
|
StatusMenuSeparator {}
|
|
|
|
StatusAction {
|
|
|
|
icon.name: "settings"
|
|
|
|
text: qsTr("Manage tokens")
|
|
|
|
onTriggered: root.manageTokensRequested()
|
|
|
|
}
|
|
|
|
StatusAction {
|
|
|
|
enabled: root.hideVisible
|
|
|
|
type: StatusAction.Type.Danger
|
|
|
|
icon.name: "hide"
|
|
|
|
text: qsTr("Hide asset")
|
|
|
|
onTriggered: root.hideRequested()
|
|
|
|
}
|
|
|
|
StatusAction {
|
|
|
|
enabled: root.communityHideVisible
|
|
|
|
type: StatusAction.Type.Danger
|
|
|
|
icon.name: "hide"
|
|
|
|
text: qsTr("Hide all assets from this community")
|
|
|
|
onTriggered: root.communityHideRequested()
|
|
|
|
}
|
|
|
|
}
|