Skip to content

Commit

Permalink
Add recommended fee support
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNaif2018 committed Jan 22, 2021
1 parent 20f054e commit b53518c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions components/CheckoutModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
CopyText(:text="itemv.node_id" v-if="itemv.lightning && selectedToCopy === 1")
CopyText(:text="itemv.payment_address" v-else)
p.mt-6.mb-0.title Waiting for {{ itemv.amount }} {{ itemv.currency.toUpperCase() }} payment
.columns(v-show="showRecommendedFee")
.column.has-text-centered
p.mt-3.mb-0.subtitle Recommended fee: {{ itemv.recommended_fee }} sat/byte
.card-footer
.card-footer-item
button.button.is-primary(@click="copyText(itemv.payment_url, 'URL')")
Expand Down Expand Up @@ -121,6 +124,13 @@ export default {
? this.itemv.node_id
: this.itemv.payment_url
},
showRecommendedFee() {
return (
this.$store.state.store.checkout_settings &&
this.$store.state.store.checkout_settings.show_recommended_fee &&
this.itemv.recommended_fee !== 0
)
},
},
watch: {
showCheckout(val) {
Expand Down

0 comments on commit b53518c

Please sign in to comment.