mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-04 18:33:10 +02:00
Update index.js
This commit is contained in:
@@ -102,7 +102,7 @@ new Vue({
|
|||||||
LNbits.api.request(
|
LNbits.api.request(
|
||||||
'PUT',
|
'PUT',
|
||||||
'/withdraw/api/v1/links/' + data.id,
|
'/withdraw/api/v1/links/' + data.id,
|
||||||
wallet.inkey,
|
wallet.adminkey,
|
||||||
_.pick(data, 'title', 'min_withdrawable', 'max_withdrawable', 'uses', 'wait_time', 'is_unique')
|
_.pick(data, 'title', 'min_withdrawable', 'max_withdrawable', 'uses', 'wait_time', 'is_unique')
|
||||||
).then(function (response) {
|
).then(function (response) {
|
||||||
self.withdrawLinks = _.reject(self.withdrawLinks, function (obj) { return obj.id == data.id; });
|
self.withdrawLinks = _.reject(self.withdrawLinks, function (obj) { return obj.id == data.id; });
|
||||||
@@ -118,7 +118,7 @@ new Vue({
|
|||||||
LNbits.api.request(
|
LNbits.api.request(
|
||||||
'POST',
|
'POST',
|
||||||
'/withdraw/api/v1/links',
|
'/withdraw/api/v1/links',
|
||||||
wallet.inkey,
|
wallet.adminkey,
|
||||||
data
|
data
|
||||||
).then(function (response) {
|
).then(function (response) {
|
||||||
self.withdrawLinks.push(mapWithdrawLink(response.data));
|
self.withdrawLinks.push(mapWithdrawLink(response.data));
|
||||||
@@ -145,7 +145,7 @@ new Vue({
|
|||||||
LNbits.api.request(
|
LNbits.api.request(
|
||||||
'DELETE',
|
'DELETE',
|
||||||
'/withdraw/api/v1/links/' + linkId,
|
'/withdraw/api/v1/links/' + linkId,
|
||||||
_.findWhere(self.g.user.wallets, {id: link.wallet}).inkey
|
_.findWhere(self.g.user.wallets, {id: link.wallet}).adminkey
|
||||||
).then(function (response) {
|
).then(function (response) {
|
||||||
self.withdrawLinks = _.reject(self.withdrawLinks, function (obj) { return obj.id == linkId; });
|
self.withdrawLinks = _.reject(self.withdrawLinks, function (obj) { return obj.id == linkId; });
|
||||||
}).catch(function (error) {
|
}).catch(function (error) {
|
||||||
|
Reference in New Issue
Block a user