yubioath-flutter/qml/CredentialMenu.qml
Dag Heyman 60a96f190a
Override copy action from search
Since the search field already have
an action on Ctrl/Cmd + C, we need to
override it to copy the credential code
to the clipboard from search.
2018-01-02 11:31:15 +01:00

29 lines
474 B
QML

import QtQuick 2.5
import QtQuick.Controls 1.4
Menu {
property var credential
property bool showGenerate
property bool enableGenerate
MenuItem {
action: copyAction
}
MenuItem {
visible: showGenerate
enabled: enableGenerate
text: qsTr("Generate code")
onTriggered: generate(false)
}
MenuSeparator {
}
MenuItem {
text: qsTr("Delete")
onTriggered: deleteCredential()
}
}