From 159cf1a39e04e9ec5f5796f1db0d78a72c0527b4 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Mon, 16 May 2022 13:57:44 -0700 Subject: [PATCH] Add SeeCompatibleWallets button to re-submit invoic after fail routing --- frontend/src/components/App.js | 2 +- frontend/src/components/TradeBox.js | 7 ++++++- frontend/src/locales/ca.json | 2 +- frontend/src/locales/de.json | 2 +- frontend/src/locales/en.json | 2 +- frontend/src/locales/es.json | 4 ++-- frontend/src/locales/fr.json | 2 +- frontend/src/locales/pl.json | 2 +- frontend/src/locales/ru.json | 2 +- frontend/src/locales/zh.json | 2 +- 10 files changed, 16 insertions(+), 11 deletions(-) diff --git a/frontend/src/components/App.js b/frontend/src/components/App.js index 914c4ad8..2e2c654b 100644 --- a/frontend/src/components/App.js +++ b/frontend/src/components/App.js @@ -40,7 +40,7 @@ export default class App extends Component { this.setState({openLearn:false})}/> - this.setState({openLearn:true})}> + this.setState({openLearn:true})}> this.setState({dark:!this.state.dark})}> {this.state.dark ? :} diff --git a/frontend/src/components/TradeBox.js b/frontend/src/components/TradeBox.js index 2e09081d..38f1a6f1 100644 --- a/frontend/src/components/TradeBox.js +++ b/frontend/src/components/TradeBox.js @@ -1171,10 +1171,15 @@ handleRatingRobosatsChange=(e)=>{ - {t("Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ")} + {t("Your invoice has expired or more than 3 payment attempts have been made.")} {t("Check the list of compatible wallets")} + + + {this.compatibleWalletsButton()} + + {t("Submit an invoice for {{amountSats}} Sats",{amountSats: pn(this.props.data.invoice_amount)})} diff --git a/frontend/src/locales/ca.json b/frontend/src/locales/ca.json index d7c38471..bc0836a8 100644 --- a/frontend/src/locales/ca.json +++ b/frontend/src/locales/ca.json @@ -322,7 +322,7 @@ "RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.":"RoboSats està intentant pagar la teva factura de Lightning. Recorda que els nodes Lightning han d'estar en línia per rebre pagaments.", "Retrying!":"Reintentant!", "Lightning Routing Failed":"Ha fallat l'enrutament Lightning", - "Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ":"La teva factura ha expirat o s'han fet més de 3 intents de pagament. La cartera Muun no està recomanada. ", + "Your invoice has expired or more than 3 payment attempts have been made.":"La teva factura ha expirat o s'han fet més de 3 intents de pagament. La cartera Muun no està recomanada. ", "Check the list of compatible wallets":"Mira la llista de carteres compatibles", "RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.":"RoboSats intentarà pagar la teva factura 3 cops cada 5 minuts. Si segueix fallant, podràs presentar una nova factura. Comprova si tens suficient liquiditat entrant. Recorda que els nodes de Lightning han d'estar en línia per poder rebre pagaments.", "Next attempt in":"Proper intent en", diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json index c3bacbb8..511281e6 100644 --- a/frontend/src/locales/de.json +++ b/frontend/src/locales/de.json @@ -311,7 +311,7 @@ "RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.":"RoboSats versucht deine Lightning-Invoice zu bezahlen. Denk daran, dass deine Lightning-Node erreichbar sein muss, um die Zahlung zu erhalten.", "Retrying!":"Erneut versuchen!", "Lightning Routing Failed":"Lightning-Weiterleitung fehlgeschlagen", - "Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ":"Deine Invoice ist abgelaufen oder mehr als drei Zahlungs-Versuche sind fehlgeschlagen. Muun-Wallet wird nicht empfohlen. ", + "Your invoice has expired or more than 3 payment attempts have been made.":"Deine Invoice ist abgelaufen oder mehr als drei Zahlungs-Versuche sind fehlgeschlagen. Muun-Wallet wird nicht empfohlen. ", "Check the list of compatible wallets":"Prüfe die Liste mit kompatiblen Wallets", "RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.":"RoboSats wird alle 5 Minuten 3 mal versuchen, deine Invoice auszuzahlen. Wenn es weiter fehlschlägt, kannst du eine neue Invoice einfügen. Prüfe deine Inbound-Liquidität. Denk daran, dass deine Lightning-Node erreichbar sein muss, um die Zahlung zu erhalten.Denk daran, dass deine Lightning-Node erreichbar sein muss, um die Zahlung zu erhalten.", "Next attempt in":"Nächster Versuch in", diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index b59ff10d..47fb664e 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -325,7 +325,7 @@ "RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.":"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.", "Retrying!":"Retrying!", "Lightning Routing Failed":"Lightning Routing Failed", - "Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ":"Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ", + "Your invoice has expired or more than 3 payment attempts have been made.":"Your invoice has expired or more than 3 payment attempts have been made.", "Check the list of compatible wallets":"Check the list of compatible wallets", "RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.":"RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.", "Next attempt in":"Next attempt in", diff --git a/frontend/src/locales/es.json b/frontend/src/locales/es.json index 0121d15f..827d2f0c 100644 --- a/frontend/src/locales/es.json +++ b/frontend/src/locales/es.json @@ -22,7 +22,7 @@ "You are about to visit 'Learn.RoboSats' page. This is a community built site hosting tutorials and documentation to help you learn to use RoboSats and understand how it works.":"Vas a visitar la página 'Learn.RoboSats'. Ha sido construida por la comunidad y tiene tutoriales y documentación que te ayudará a aprender como se usa RoboSats y a entender como funciona.", "Let's go!":"¡Vamos!", - + "MAKER PAGE - MakerPage.js": "This is the page where users can create new orders", "Order":"Orden", "Customize":"Personalizar", @@ -324,7 +324,7 @@ "RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.": "RoboSats está intentando pagar tu factura de Lightning. Recuerda que los nodos Lightning deben estar en línea para recibir pagos.", "Retrying!": "¡Reintentando!", "Lightning Routing Failed": "Fallo en el enrutamiento de Lightning", - "Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ": "Tu factura ha expirado o se han hecho más de 3 intentos de pago. La cartera Muun no está recomendada. ", + "Your invoice has expired or more than 3 payment attempts have been made.": "Tu factura ha expirado o se han hecho más de 3 intentos de pago.", "Check the list of compatible wallets": "Mira la lista de carteras compatibles", "RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.": "RoboSats intentará pagar tu factura 3 veces cada 5 minutos. Si sigue fallando, podrás presentar una nueva factura. Comprueba si tienes suficiente liquidez entrante. Recuerda que los nodos de Lightning tienen que estar en línea para poder recibir pagos.", "Next attempt in": "Próximo intento en", diff --git a/frontend/src/locales/fr.json b/frontend/src/locales/fr.json index edb61ba9..0e210403 100644 --- a/frontend/src/locales/fr.json +++ b/frontend/src/locales/fr.json @@ -304,7 +304,7 @@ "RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.":"RoboSats tente de payer votre facture lightning. Rappelez-vous que les nœuds lightning doivent être en ligne pour recevoir des paiements.", "Retrying!":"Nouvelle tentative!", "Lightning Routing Failed":"Échec du routage Lightning", - "Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ":"Votre facture a expiré ou plus de 3 tentatives de paiement ont été effectuées. Le porte-monnaie Muun n'est pas recommandé.", + "Your invoice has expired or more than 3 payment attempts have been made.":"Votre facture a expiré ou plus de 3 tentatives de paiement ont été effectuées. Le porte-monnaie Muun n'est pas recommandé.", "Check the list of compatible wallets":"Vérifier la liste des portefeuilles compatibles", "RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.":"RoboSats essaiera de payer votre facture 3 fois toutes les 5 minutes. S'il continue à échouer, vous pourrez soumettre une nouvelle facture. Vérifiez si vous avez suffisamment de liquidité entrante. N'oubliez pas que les nœuds lightning doivent être en ligne pour pouvoir recevoir des paiements.", "Next attempt in":"Prochaine tentative en", diff --git a/frontend/src/locales/pl.json b/frontend/src/locales/pl.json index 306c381f..aadeb03b 100644 --- a/frontend/src/locales/pl.json +++ b/frontend/src/locales/pl.json @@ -304,7 +304,7 @@ "RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.":"RoboSats próbuje zapłacić fakturę za błyskawicę. Pamiętaj, że węzły pioruna muszą być online, aby otrzymywać płatności.", "Retrying!":"Ponawianie!", "Lightning Routing Failed":"Lightning Niepowodzenie routingu", - "Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ":"Twoja faktura wygasła lub wykonano więcej niż 3 próby płatności. Muun Wallet nie jest zalecany. ", + "Your invoice has expired or more than 3 payment attempts have been made.":"Twoja faktura wygasła lub wykonano więcej niż 3 próby płatności. Muun Wallet nie jest zalecany. ", "Check the list of compatible wallets":"Sprawdź listę kompatybilnych wallets", "RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.":"RoboSats będzie próbował zapłacić fakturę 3 razy co 5 minut. Jeśli to się nie powiedzie, będziesz mógł wystawić nową fakturę. Sprawdź, czy masz wystarczającą płynność przychodzącą. Pamiętaj, że węzły pioruna muszą być online, aby otrzymywać płatności.", "Next attempt in":"Następna próba za", diff --git a/frontend/src/locales/ru.json b/frontend/src/locales/ru.json index 5da4a034..0e3a821c 100644 --- a/frontend/src/locales/ru.json +++ b/frontend/src/locales/ru.json @@ -311,7 +311,7 @@ "RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.":"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.", "Retrying!":"Retrying!", "Lightning Routing Failed":"Lightning Routing Failed", - "Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ":"Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ", + "Your invoice has expired or more than 3 payment attempts have been made.":"Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ", "Check the list of compatible wallets":"Check the list of compatible wallets", "RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.":"RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.", "Next attempt in":"Next attempt in", diff --git a/frontend/src/locales/zh.json b/frontend/src/locales/zh.json index 5da4a034..0e3a821c 100644 --- a/frontend/src/locales/zh.json +++ b/frontend/src/locales/zh.json @@ -311,7 +311,7 @@ "RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.":"RoboSats is trying to pay your lightning invoice. Remember that lightning nodes must be online in order to receive payments.", "Retrying!":"Retrying!", "Lightning Routing Failed":"Lightning Routing Failed", - "Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ":"Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ", + "Your invoice has expired or more than 3 payment attempts have been made.":"Your invoice has expired or more than 3 payment attempts have been made. Muun wallet is not recommended. ", "Check the list of compatible wallets":"Check the list of compatible wallets", "RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.":"RoboSats will try to pay your invoice 3 times every 5 minutes. If it keeps failing, you will be able to submit a new invoice. Check whether you have enough inbound liquidity. Remember that lightning nodes must be online in order to receive payments.", "Next attempt in":"Next attempt in",