force download wipe json when deleting card

This commit is contained in:
Gene Takavic 2022-11-29 09:34:54 +01:00
parent 7b9245e62e
commit 5abb013a43

View file

@ -412,6 +412,12 @@ new Vue({
let self = this let self = this
let cards = _.findWhere(this.cards, {id: cardId}) let cards = _.findWhere(this.cards, {id: cardId})
Quasar.utils.exportFile(
cards.card_name + '.json',
this.qrCodeDialog.data_wipe,
'application/json'
)
LNbits.utils LNbits.utils
.confirmDialog( .confirmDialog(
"Are you sure you want to delete this card? Without access to the card keys you won't be able to reset them in the future!" "Are you sure you want to delete this card? Without access to the card keys you won't be able to reset them in the future!"