yubioath-flutter/qml/CredentialMenu.qml
2017-03-22 14:45:33 +01:00

28 lines
539 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")
enabled: (credential != null) && (credential.code != null)
onTriggered: copy()
}
MenuItem {
visible: showGenerate
enabled: enableGenerate
text: qsTr("Generate code")
onTriggered: generate()
}
MenuItem {
text: qsTr("Delete")
onTriggered: deleteCredential()
}
}