Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Add 'Channel opening/closing' message while waiting tx confirmations … #284

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 6 additions & 14 deletions src/components/BitcoinWallet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -180,20 +180,12 @@
v-if="tx.type === 'outgoing' || tx.type === 'incoming'"
>
{{ getTimeFromNow(tx.timestamp) }}
<span
v-if="
tx.description === 'Lightning Wallet' &&
tx.type === 'outgoing'
"
>&bull; Channel open</span
>
<span
v-else-if="
tx.description === 'Lightning Wallet' &&
tx.type === 'incoming'
"
>&bull; Channel close</span
>
<span v-if="tx.description === 'Lightning Wallet' && tx.type === 'outgoing'">
&bull; {{ tx.confirmations === 0 ? "Channel opening" : "Channel open" }}
</span>
<span v-else-if=" tx.description === 'Lightning Wallet' && tx.type === 'incoming'">
&bull; {{ tx.confirmations === 0 ? "Channel closing" : "Channel close" }}
</span>
</small>
</div>

Expand Down