mirror of
https://github.com/lnbits/lnbits.git
synced 2025-07-24 19:55:41 +02:00
few bugs
This commit is contained in:
@@ -112,7 +112,9 @@
|
|||||||
@click="openUpdateCopilotLink(props.row.id)"
|
@click="openUpdateCopilotLink(props.row.id)"
|
||||||
icon="edit"
|
icon="edit"
|
||||||
color="light-blue"
|
color="light-blue"
|
||||||
></q-btn>
|
>
|
||||||
|
<q-tooltip> Edit copilot </q-tooltip>
|
||||||
|
</q-btn>
|
||||||
</q-td>
|
</q-td>
|
||||||
<q-td
|
<q-td
|
||||||
v-for="col in props.cols"
|
v-for="col in props.cols"
|
||||||
@@ -408,22 +410,8 @@
|
|||||||
data: function () {
|
data: function () {
|
||||||
return {
|
return {
|
||||||
filter: '',
|
filter: '',
|
||||||
watchonlyactive: false,
|
|
||||||
balance: null,
|
|
||||||
checker: null,
|
|
||||||
walletLinks: [],
|
|
||||||
CopilotLinks: [],
|
CopilotLinks: [],
|
||||||
CopilotLinksObj: [],
|
CopilotLinksObj: [],
|
||||||
onchainwallet: '',
|
|
||||||
currentaddress: '',
|
|
||||||
Addresses: {
|
|
||||||
show: false,
|
|
||||||
data: null
|
|
||||||
},
|
|
||||||
mempool: {
|
|
||||||
endpoint: ''
|
|
||||||
},
|
|
||||||
|
|
||||||
CopilotsTable: {
|
CopilotsTable: {
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
@@ -466,7 +454,7 @@
|
|||||||
lnurl_toggle: false,
|
lnurl_toggle: false,
|
||||||
show_message: false,
|
show_message: false,
|
||||||
show_ack: false,
|
show_ack: false,
|
||||||
show_price: false,
|
show_price: 'None',
|
||||||
title: ''
|
title: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -475,7 +463,7 @@
|
|||||||
data: null
|
data: null
|
||||||
},
|
},
|
||||||
options: ['bitcoin', 'confetti', 'rocket', 'face', 'martijn', 'rick'],
|
options: ['bitcoin', 'confetti', 'rocket', 'face', 'martijn', 'rick'],
|
||||||
currencyOptions: ['btcusd', 'btceur', 'btcgbp']
|
currencyOptions: ['None', 'btcusd', 'btceur', 'btcgbp']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -556,7 +544,7 @@
|
|||||||
openCopilotPanel: function (copilot_id) {
|
openCopilotPanel: function (copilot_id) {
|
||||||
this.getCopilot(copilot_id)
|
this.getCopilot(copilot_id)
|
||||||
let params =
|
let params =
|
||||||
'scrollbars=no, resizable=no,status=no,location=no,toolbar=no,menubar=no,width=400,height=450,left=10,top=400'
|
'scrollbars=no, resizable=no,status=no,location=no,toolbar=no,menubar=no,width=300,height=450,left=10,top=400'
|
||||||
open('../copilot/pn/', '_blank', params)
|
open('../copilot/pn/', '_blank', params)
|
||||||
},
|
},
|
||||||
deleteCopilotLink: function (copilotId) {
|
deleteCopilotLink: function (copilotId) {
|
||||||
@@ -595,6 +583,16 @@
|
|||||||
if (data[property]) {
|
if (data[property]) {
|
||||||
updatedData[property] = data[property]
|
updatedData[property] = data[property]
|
||||||
}
|
}
|
||||||
|
if (property == 'animation1threshold' && data[property]) {
|
||||||
|
console.log(data[property])
|
||||||
|
updatedData[property] = parseInt(data[property])
|
||||||
|
}
|
||||||
|
if (property == 'animation2threshold' && data[property]) {
|
||||||
|
updatedData[property] = parseInt(data[property])
|
||||||
|
}
|
||||||
|
if (property == 'animation3threshold' && data[property]) {
|
||||||
|
updatedData[property] = parseInt(data[property])
|
||||||
|
}
|
||||||
}
|
}
|
||||||
console.log(updatedData)
|
console.log(updatedData)
|
||||||
|
|
||||||
@@ -606,6 +604,9 @@
|
|||||||
updatedData
|
updatedData
|
||||||
)
|
)
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
|
self.CopilotLinks = _.reject(self.CopilotLinks, function (obj) {
|
||||||
|
return obj.id === updatedData.id
|
||||||
|
})
|
||||||
self.CopilotLinks.push(mapCopilot(response.data))
|
self.CopilotLinks.push(mapCopilot(response.data))
|
||||||
self.formDialogCopilot.show = false
|
self.formDialogCopilot.show = false
|
||||||
})
|
})
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{% extends "public.html" %} {% block page %}
|
{% extends "public.html" %} {% block page %}
|
||||||
<div class="q-pa-sm" style="width: 300px; margin: 10px auto">
|
<div class="q-pa-sm" style="width: 240px; margin: 10px auto">
|
||||||
<q-card class="my-card">
|
<q-card class="my-card">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
@@ -10,12 +10,12 @@
|
|||||||
dense
|
dense
|
||||||
@click="openCompose"
|
@click="openCompose"
|
||||||
icon="face"
|
icon="face"
|
||||||
style="font-size: 80px"
|
style="font-size: 60px"
|
||||||
></q-btn>
|
></q-btn>
|
||||||
</center>
|
</center>
|
||||||
</div>
|
</div>
|
||||||
<center>
|
<center>
|
||||||
<div class="col" style="margin: 15px; font-size: 25px">
|
<div class="col" style="margin: 15px; font-size: 22px">
|
||||||
Title: {% raw %} {{ copilot.title }} {% endraw %}
|
Title: {% raw %} {{ copilot.title }} {% endraw %}
|
||||||
</div>
|
</div>
|
||||||
</center>
|
</center>
|
||||||
@@ -28,6 +28,7 @@
|
|||||||
color="primary"
|
color="primary"
|
||||||
@click="fullscreenToggle"
|
@click="fullscreenToggle"
|
||||||
label="Screen share"
|
label="Screen share"
|
||||||
|
size="sm"
|
||||||
>
|
>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</div>
|
</div>
|
||||||
@@ -39,6 +40,7 @@
|
|||||||
color="primary"
|
color="primary"
|
||||||
@click="animationBTN('rocket')"
|
@click="animationBTN('rocket')"
|
||||||
label="rocket"
|
label="rocket"
|
||||||
|
size="sm"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
@@ -47,6 +49,7 @@
|
|||||||
color="primary"
|
color="primary"
|
||||||
@click="animationBTN('confetti')"
|
@click="animationBTN('confetti')"
|
||||||
label="confetti"
|
label="confetti"
|
||||||
|
size="sm"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
@@ -55,6 +58,7 @@
|
|||||||
color="primary"
|
color="primary"
|
||||||
@click="animationBTN('face')"
|
@click="animationBTN('face')"
|
||||||
label="face"
|
label="face"
|
||||||
|
size="sm"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -65,6 +69,7 @@
|
|||||||
color="primary"
|
color="primary"
|
||||||
@click="animationBTN('rick')"
|
@click="animationBTN('rick')"
|
||||||
label="rick"
|
label="rick"
|
||||||
|
size="sm"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
@@ -73,6 +78,7 @@
|
|||||||
color="primary"
|
color="primary"
|
||||||
@click="animationBTN('martijn')"
|
@click="animationBTN('martijn')"
|
||||||
label="martijn"
|
label="martijn"
|
||||||
|
size="sm"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
@@ -81,6 +87,7 @@
|
|||||||
color="primary"
|
color="primary"
|
||||||
@click="animationBTN('bitcoin')"
|
@click="animationBTN('bitcoin')"
|
||||||
label="bitcoin"
|
label="bitcoin"
|
||||||
|
size="sm"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -27,20 +27,20 @@ from .crud import (
|
|||||||
@api_validate_post_request(
|
@api_validate_post_request(
|
||||||
schema={
|
schema={
|
||||||
"title": {"type": "string", "empty": False, "required": True},
|
"title": {"type": "string", "empty": False, "required": True},
|
||||||
"lnurl_toggle": {"type": "integer", "empty": False, "required": True},
|
"lnurl_toggle": {"type": "integer", "empty": False},
|
||||||
"wallet": {"type": "string", "empty": False, "required": False},
|
"wallet": {"type": "string", "empty": False, "required": False},
|
||||||
"animation1": {"type": "string", "empty": True, "required": False},
|
"animation1": {"type": "string", "empty": True, "required": False},
|
||||||
"animation2": {"type": "string", "empty": True, "required": False},
|
"animation2": {"type": "string", "empty": True, "required": False},
|
||||||
"animation3": {"type": "string", "empty": True, "required": False},
|
"animation3": {"type": "string", "empty": True, "required": False},
|
||||||
"animation1threshold": {"type": "string", "empty": True, "required": False},
|
"animation1threshold": {"type": "integer", "empty": True, "required": False},
|
||||||
"animation2threshold": {"type": "string", "empty": True, "required": False},
|
"animation2threshold": {"type": "integer", "empty": True, "required": False},
|
||||||
"animation3threshold": {"type": "string", "empty": True, "required": False},
|
"animation3threshold": {"type": "integer", "empty": True, "required": False},
|
||||||
"animation1webhook": {"type": "string", "empty": True, "required": False},
|
"animation1webhook": {"type": "string", "empty": True, "required": False},
|
||||||
"animation2webhook": {"type": "string", "empty": True, "required": False},
|
"animation2webhook": {"type": "string", "empty": True, "required": False},
|
||||||
"animation3webhook": {"type": "string", "empty": True, "required": False},
|
"animation3webhook": {"type": "string", "empty": True, "required": False},
|
||||||
"lnurl_title": {"type": "string", "empty": True, "required": False},
|
"lnurl_title": {"type": "string", "empty": True, "required": False},
|
||||||
"show_message": {"type": "integer", "empty": True, "required": False},
|
"show_message": {"type": "integer", "empty": True, "required": False},
|
||||||
"show_ack": {"type": "integer", "empty": True, "required": True},
|
"show_ack": {"type": "integer", "empty": True},
|
||||||
"show_price": {"type": "string", "empty": True},
|
"show_price": {"type": "string", "empty": True},
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user