mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-28 03:11:17 +03:00
28 lines
539 B
QML
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()
|
|
}
|
|
}
|