mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-03-04 01:53:59 +01:00
Added restrictions
This commit is contained in:
parent
fa23be7657
commit
1acdd4b548
1 changed files with 12 additions and 5 deletions
|
@ -31,9 +31,8 @@
|
||||||
{% raw %}
|
{% raw %}
|
||||||
<template v-slot:header="props">
|
<template v-slot:header="props">
|
||||||
<q-tr :props="props">
|
<q-tr :props="props">
|
||||||
<q-th auto-width></q-th>
|
|
||||||
<q-th v-for="col in props.cols" :key="col.name" :props="props">
|
<q-th v-for="col in props.cols" :key="col.name" :props="props">
|
||||||
{{ col.label }}
|
{{ col.label}}
|
||||||
</q-th>
|
</q-th>
|
||||||
<q-th auto-width></q-th>
|
<q-th auto-width></q-th>
|
||||||
</q-tr>
|
</q-tr>
|
||||||
|
@ -42,7 +41,14 @@
|
||||||
<template v-slot:body="props">
|
<template v-slot:body="props">
|
||||||
<q-tr :props="props">
|
<q-tr :props="props">
|
||||||
<q-td v-for="col in props.cols" :key="col.name" :props="props">
|
<q-td v-for="col in props.cols" :key="col.name" :props="props">
|
||||||
{{ col.value }}
|
<a v-if="col.label == 'LNURLPay'" @click="copyText(col.value)"
|
||||||
|
><q-tooltip>Click to copy LNURL</q-tooltip>{{
|
||||||
|
col.value.substring(0, 40) }}...</a
|
||||||
|
>
|
||||||
|
<div v-else-if="col.label == 'Threshold'">
|
||||||
|
{{ col.value }} Sats
|
||||||
|
</div>
|
||||||
|
<div v-else>{{ col.value.substring(0, 40) }}</div>
|
||||||
</q-td>
|
</q-td>
|
||||||
<q-td auto-width>
|
<q-td auto-width>
|
||||||
<q-btn
|
<q-btn
|
||||||
|
@ -102,9 +108,10 @@
|
||||||
filled
|
filled
|
||||||
dense
|
dense
|
||||||
v-model.trim="formDialog.data.threshold"
|
v-model.trim="formDialog.data.threshold"
|
||||||
label="Threshold"
|
label="Threshold (100k sats max)"
|
||||||
placeholder="Threshold"
|
placeholder="Threshold"
|
||||||
type="number"
|
type="number"
|
||||||
|
max="100000"
|
||||||
></q-input>
|
></q-input>
|
||||||
<div class="row q-mt-lg">
|
<div class="row q-mt-lg">
|
||||||
<q-btn
|
<q-btn
|
||||||
|
@ -201,7 +208,7 @@
|
||||||
data
|
data
|
||||||
)
|
)
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
console.log(response.data)
|
console.log(data)
|
||||||
self.lnurlpayouts.push(maplnurlpayout(response.data))
|
self.lnurlpayouts.push(maplnurlpayout(response.data))
|
||||||
self.formDialog.show = false
|
self.formDialog.show = false
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue