Skip to content

Commit

Permalink
fix: q-table
Browse files Browse the repository at this point in the history
  • Loading branch information
motorina0 committed Oct 4, 2024
1 parent 60b3c4d commit 8d20080
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion migrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,3 @@ async def m010_add_pay_link_domain(db):
Add domain to pay links
"""
await db.execute("ALTER TABLE lnurlp.pay_links ADD COLUMN domain TEXT;")

6 changes: 4 additions & 2 deletions templates/lnurlp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ <h5 class="text-subtitle1 q-my-none">Pay links</h5>
<q-table
dense
flat
:data="payLinks"
:rows="payLinks"
row-key="id"
:pagination.sync="payLinksTable.pagination"
v-model:pagination="payLinksTable.pagination"
>
{% raw %}
<template v-slot:header="props">
Expand All @@ -53,6 +53,7 @@ <h5 class="text-subtitle1 q-my-none">Pay links</h5>
type="a"
:href="props.row.pay_url"
target="_blank"
class="q-ml-sm"
><q-tooltip>Shareable Page</q-tooltip></q-btn
>
<q-btn
Expand All @@ -61,6 +62,7 @@ <h5 class="text-subtitle1 q-my-none">Pay links</h5>
size="xs"
icon="visibility"
:color="($q.dark.isActive) ? 'grey-7' : 'grey-5'"
class="q-ml-sm"
@click="openQrCodeDialog(props.row.id)"
><q-tooltip>View Link</q-tooltip></q-btn
>
Expand Down

0 comments on commit 8d20080

Please sign in to comment.