Skip to content
This repository was archived by the owner on Feb 26, 2021. It is now read-only.

Commit 748c0be

Browse files
chrisdukakisth0br0
authored andcommitted
ui.recover: add clipboard for tx hash
1 parent f3ec304 commit 748c0be

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed

locales/en/translation.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -339,5 +339,6 @@
339339
"recovery_proof_transaction_pending": "Proof transaction is pending",
340340
"recovery_proof_transaction_confirmed": "Proof transaction confirmed",
341341
"recovery_close": "Close",
342-
"invalid_checksum": "Invalid checksum"
342+
"invalid_checksum": "Invalid checksum",
343+
"recovery_transaction_hash": "Transaction hash:"
343344
}

ui/css/ui.css

+5
Original file line numberDiff line numberDiff line change
@@ -1857,3 +1857,8 @@ input[type="number"] {
18571857
#recovery-step-2-close {
18581858
display: none;
18591859
}
1860+
1861+
#recovery-transaction-hash-clipboard {
1862+
overflow: hidden;
1863+
margin: 14px;
1864+
}

ui/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ <h1 data-i18n="network_spammer"></h1>
204204
<span id="recovery-proof-transaction-pending" data-i18n="recovery_proof_transaction_pending"></span>
205205
<span id="recovery-proof-transaction-confirmed" data-i18n="recovery_proof_transaction_confirmed"></span>
206206
</p>
207+
<span data-i18n="recovery_transaction_hash"></span>
208+
<div id="recovery-transaction-hash-clipboard" class="hash"></div>
207209
<p id="recovery-reattach-prompt" class="description"><span data-i18n="recovery_reattach_prompt"></span></p>
208210
<button id="recovery-reattach-btn" class="btn" type="button" data-initial="reattach" data-loading="reattaching" data-i18n="reattach"></button>
209211
<button id="recovery-step-2-close" class="btn btn-no-loading" type="button" data-initial="recovery_close" data-i18n="recovery_close"></button>

ui/js/ui.recover.js

+1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ var UI = (function (UI, $, undefined) {
9999
$('.remodal-close').off('click')
100100
$('#recovery-step-1').hide()
101101
$('#recovery-step-2').fadeIn()
102+
$('#recovery-transaction-hash-clipboard').html(UI.formatForClipboard(tx[0].hash))
102103
_step++
103104
checkInclusionStates(tx[0], CONFIRMATION_CHECK_TIMEOUT, function (err, confirmed) {
104105
if (err) {

0 commit comments

Comments
 (0)