yubioath-flutter/qml/CredentialMenu.qml
Dag Heyman a4a7b63f21
Only double-click copies, not all generate
Change behaviour so that only double-click
copies touch credentials, and manual generate
action only generates them.
2017-07-31 13:52:06 +02:00

31 lines
584 B
QML

import QtQuick 2.5
import QtQuick.Controls 1.4
Menu {
property var credential
property bool showGenerate
property bool enableGenerate
MenuItem {
text: qsTr("\&Copy to clipboard")
enabled: (credential != null) && (credential.code != null)
onTriggered: copy()
}
MenuItem {
visible: showGenerate
enabled: enableGenerate
text: qsTr("Generate code")
onTriggered: generate(false)
}
MenuSeparator {
}
MenuItem {
text: qsTr("Delete")
onTriggered: deleteCredential()
}
}