From 5abb013a435b5989175187dc6b2dc7c9cdc971b0 Mon Sep 17 00:00:00 2001 From: Gene Takavic Date: Tue, 29 Nov 2022 09:34:54 +0100 Subject: [PATCH] force download wipe json when deleting card --- lnbits/extensions/boltcards/static/js/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lnbits/extensions/boltcards/static/js/index.js b/lnbits/extensions/boltcards/static/js/index.js index 95a95afc..1f32ad44 100644 --- a/lnbits/extensions/boltcards/static/js/index.js +++ b/lnbits/extensions/boltcards/static/js/index.js @@ -412,6 +412,12 @@ new Vue({ let self = this let cards = _.findWhere(this.cards, {id: cardId}) + Quasar.utils.exportFile( + cards.card_name + '.json', + this.qrCodeDialog.data_wipe, + 'application/json' + ) + LNbits.utils .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!"