mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-02 13:55:13 +03:00
60a96f190a
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.
29 lines
474 B
QML
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()
|
|
}
|
|
}
|