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

Conversation

bguillaumat
Copy link

@bguillaumat bguillaumat commented Jan 13, 2021

This will resolve #274

louneskmt
louneskmt previously approved these changes Jan 13, 2021
Comment on lines 183 to 189
<span
v-if="
tx.description === 'Lightning Wallet' &&
tx.type === 'outgoing'
tx.type === 'outgoing' &&
tx.confirmations === 0
"
>&bull; Channel opening</span
>
<span
v-else-if="
tx.description === 'Lightning Wallet' &&
tx.type === 'outgoing' &&
tx.confirmations > 0
"
>&bull; Channel open</span
>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<span
v-if="
tx.description === 'Lightning Wallet' &&
tx.type === 'outgoing'
tx.type === 'outgoing' &&
tx.confirmations === 0
"
>&bull; Channel opening</span
>
<span
v-else-if="
tx.description === 'Lightning Wallet' &&
tx.type === 'outgoing' &&
tx.confirmations > 0
"
>&bull; Channel open</span
>
<span
v-if="
tx.description === 'Lightning Wallet' &&
tx.type === 'outgoing'
"
>&bull; {{ tx.confirmations === 0 ? "Channel opening" : "Channel open" }}</span
>

Maybe you can have only one span and change the text depending on the confirmation condition instead of having two identical span?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah totally, my bad I've done it to fast, I will update it and do the same for closing

@bguillaumat
Copy link
Author

Done 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Channel Open" text change suggestion
2 participants