diff --git a/lnbits/extensions/diagonalley/templates/diagonalley/index.html b/lnbits/extensions/diagonalley/templates/diagonalley/index.html
index 0882fd2fb..435735ad4 100644
--- a/lnbits/extensions/diagonalley/templates/diagonalley/index.html
+++ b/lnbits/extensions/diagonalley/templates/diagonalley/index.html
@@ -1953,21 +1953,21 @@
})
})
},
- shipOrder(order_id){
+ shipOrder(order_id) {
LNbits.api
.request(
'GET',
'/diagonalley/api/v1/orders/shipped/' + order_id,
this.g.user.wallets[0].inkey
)
- .then((response) => {
+ .then(response => {
console.log(response.data)
- this.orders = _.reject(this.orders, (obj) => {
+ this.orders = _.reject(this.orders, obj => {
return obj.id == order_id
})
this.orders.push(mapOrders(response.data))
})
- .catch((error) => {
+ .catch(error => {
LNbits.utils.notifyApiError(error)
})
},
@@ -2022,7 +2022,7 @@
this.updateLastSeenMsg(key)
return
}
-
+
if (
lastMsgs[key].timestamp <
Math.max(...this.messages[key].map(c => c.timestamp))
diff --git a/lnbits/extensions/diagonalley/templates/diagonalley/order.html b/lnbits/extensions/diagonalley/templates/diagonalley/order.html
index fe5c79031..90b0b7deb 100644
--- a/lnbits/extensions/diagonalley/templates/diagonalley/order.html
+++ b/lnbits/extensions/diagonalley/templates/diagonalley/order.html
@@ -137,11 +137,21 @@
>Backup keys
Download your keys
- Restore keys
Restore keys
- Delete data
Delete all data from browser
@@ -155,10 +165,7 @@
position="top"
@hide="clearRestoreKeyDialog"
>
-
-
+
+ >
+ >
-
+
@@ -230,7 +237,7 @@
this.newMessage = ''
this.$refs.newMessage.focus()
},
- clearRestoreKeyDialog(){
+ clearRestoreKeyDialog() {
this.keysDialog = {
show: false,
data: {}
@@ -249,10 +256,14 @@
if (!key) return ''
return `${key.slice(0, 4)}...${key.slice(-4)}`
},
- downloadKeys(){
- const file = new File([JSON.stringify(this.user.keys)], 'backup_keys.json', {
- type: 'text/json',
- })
+ downloadKeys() {
+ const file = new File(
+ [JSON.stringify(this.user.keys)],
+ 'backup_keys.json',
+ {
+ type: 'text/json'
+ }
+ )
const link = document.createElement('a')
const url = URL.createObjectURL(file)
@@ -261,19 +272,18 @@
link.click()
window.URL.revokeObjectURL(url)
-
},
- restoreKeys(){
+ restoreKeys() {
this.user.keys = this.keysDialog.data
let data = this.$q.localStorage.getItem(`lnbits.diagonalley.data`)
this.$q.localStorage.set(`lnbits.diagonalley.data`, {
...data,
keys: this.user.keys
})
-
+
this.clearRestoreKeyDialog()
},
- deleteData(){
+ deleteData() {
LNbits.utils
.confirmDialog('Are you sure you want to delete your stored data?')
.onOk(() => {