mirror of
https://github.com/seiichiro0185/sailotp.git
synced 2024-11-22 15:49:43 +00:00
Added copy token on tap
This commit is contained in:
parent
7f781b8d90
commit
a586ea01a7
1 changed files with 6 additions and 2 deletions
|
@ -138,11 +138,15 @@ Page {
|
||||||
contentHeight: Theme.itemSizeMedium
|
contentHeight: Theme.itemSizeMedium
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
||||||
function remove() {
|
function remove() {
|
||||||
// Show 5s countdown, then delete from DB and List
|
// Show 5s countdown, then delete from DB and List
|
||||||
remorseAction("Deleting", function() { DB.removeOTP(title, secret); otpListModel.remove(index) })
|
remorseAction("Deleting", function() { DB.removeOTP(title, secret); otpListModel.remove(index) })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onClicked: {
|
||||||
|
Clipboard.text = otp
|
||||||
|
}
|
||||||
|
|
||||||
ListView.onRemove: animateRemoval()
|
ListView.onRemove: animateRemoval()
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: listRow
|
id: listRow
|
||||||
|
|
Loading…
Reference in a new issue