status-desktop/ui/imports/shared/views/TransactionContextMenu.qml

27 lines
625 B
QML

import QtQuick 2.15
import StatusQ.Popups 0.1
StatusMenu {
id: root
required property string networkExplorerName
signal viewTxOnExplorerRequested
signal copyTxHashRequested
StatusAction {
objectName: "viewTxOnExplorerItem"
text: qsTr("View on %1").arg(networkExplorerName)
icon.name: "link"
onTriggered: root.viewTxOnExplorerRequested()
}
StatusSuccessAction {
objectName: "copyTxHashItem"
text: qsTr("Copy transaction hash")
successText: qsTr("Copied")
icon.name: "copy"
onTriggered: root.copyTxHashRequested()
}
}