diff --git a/frontend/src/components/TradeBox.js b/frontend/src/components/TradeBox.js
index e303c9d6..8c4940a5 100644
--- a/frontend/src/components/TradeBox.js
+++ b/frontend/src/components/TradeBox.js
@@ -1060,12 +1060,26 @@ handleRatingRobosatsChange=(e)=>{
)
}
+ disputeCountdownRenderer = ({ hours, minutes}) => {
+ return ({hours}h {zeroPad(minutes)}m );
+ };
+
showOpenDisputeButton(){
const { t } = this.props;
+ let now = Date.now();
+ var expires_at = new Date(this.props.data.expires_at);
+ // open dispute button enables 12h before expiry
+ expires_at.setHours(expires_at.getHours() - 12);
return(
+ expires_at}
+ disableTouchListener={now>expires_at}
+ enterTouchDelay={0}
+ title={To open a dispute you need to wait }>
-
+
+
)
}
@@ -1318,7 +1332,7 @@ handleRatingRobosatsChange=(e)=>{
{zeroPad(minutes)}m {zeroPad(seconds)}s
);
}
- };
+ };
failureReason=()=>{
const { t } = this.props;
diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json
index 26255bfd..b8df4862 100644
--- a/frontend/src/locales/en.json
+++ b/frontend/src/locales/en.json
@@ -404,6 +404,7 @@
"Your TXID":"Your TXID",
"Lightning":"Lightning",
"Onchain":"Onchain",
+ "open_dispute":"To open a dispute you need to wait <1><1/>",
"INFO DIALOG - InfoDiagog.js":"App information and clarifications and terms of use",
diff --git a/frontend/src/locales/es.json b/frontend/src/locales/es.json
index 9aefa9c6..befb16a7 100644
--- a/frontend/src/locales/es.json
+++ b/frontend/src/locales/es.json
@@ -405,6 +405,8 @@
"Your TXID":"Tu TXID",
"Lightning":"Lightning",
"Onchain":"Onchain",
+ "open_dispute":"Para abrir una disputa debes esperar <1><1/>",
+
"INFO DIALOG - InfoDiagog.js": "App information and clarifications and terms of use",
"Close": "Cerrar",