mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-04 20:13:04 +03:00
7894af2be6
as suggested in #146
31 lines
579 B
QML
31 lines
579 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()
|
|
}
|
|
|
|
MenuSeparator {
|
|
}
|
|
|
|
MenuItem {
|
|
text: qsTr("Delete")
|
|
onTriggered: deleteCredential()
|
|
}
|
|
}
|