From bb8dad160725e7128f0cbd28c773254b7f27211b Mon Sep 17 00:00:00 2001 From: tecnovert Date: Fri, 10 Jan 2025 20:45:26 +0200 Subject: [PATCH] ui: Hide unused fee options for XMR and WOW on offer page. --- basicswap/templates/offer_confirm.html | 10 ++++++++-- basicswap/templates/offer_new_2.html | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/basicswap/templates/offer_confirm.html b/basicswap/templates/offer_confirm.html index b5d2cbf..7adf3e3 100644 --- a/basicswap/templates/offer_confirm.html +++ b/basicswap/templates/offer_confirm.html @@ -168,6 +168,8 @@ {% if data.swap_style == 'xmr' %} + {% if data.coin_from | int in (6, 9) %} {# Not XMR or WOW #} + {% else %}

Fee From Confirm Target

@@ -202,6 +204,7 @@
Lock Tx Spend Fee: {{ data.amt_from_lock_spend_tx_fee }} {{ data.tla_from }}
{% endif %} + {% endif %} @@ -238,7 +241,9 @@
- {% if data.swap_style == 'xmr' and coin_to != '6' %} + {% if data.swap_style == 'xmr' %} + {% if data.coin_to | int in (6, 9) %} {# Not XMR or WOW #} + {% else %}

Fee To Confirm Target

@@ -273,6 +278,7 @@
{% endif %} + {% endif %} @@ -467,4 +473,4 @@ {% include 'footer.html' %} - \ No newline at end of file + diff --git a/basicswap/templates/offer_new_2.html b/basicswap/templates/offer_new_2.html index 8374a57..383da82 100644 --- a/basicswap/templates/offer_new_2.html +++ b/basicswap/templates/offer_new_2.html @@ -175,6 +175,8 @@ {% if data.swap_style == 'xmr' %} + {% if data.coin_from | int in (6, 9) %} {# Not XMR or WOW #} + {% else %}

Fee From Confirm Target

@@ -199,6 +201,7 @@
{% endif %} + {% endif %} @@ -233,7 +236,9 @@
- {% if data.swap_style == 'xmr' and coin_to != '6' %} + {% if data.swap_style == 'xmr' %} + {% if data.coin_to | int in (6, 9) %} {# Not XMR or WOW #} + {% else %}

Fee To Confirm Target

@@ -259,6 +264,7 @@
{% endif %} + {% endif %} @@ -449,4 +455,4 @@ {% include 'footer.html' %} - \ No newline at end of file +