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

Commit

Permalink
ui.recover: add clipboard for tx hash
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdukakis authored and th0br0 committed Oct 24, 2017
1 parent f3ec304 commit 748c0be
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -339,5 +339,6 @@
"recovery_proof_transaction_pending": "Proof transaction is pending",
"recovery_proof_transaction_confirmed": "Proof transaction confirmed",
"recovery_close": "Close",
"invalid_checksum": "Invalid checksum"
"invalid_checksum": "Invalid checksum",
"recovery_transaction_hash": "Transaction hash:"
}
5 changes: 5 additions & 0 deletions ui/css/ui.css
Original file line number Diff line number Diff line change
Expand Up @@ -1857,3 +1857,8 @@ input[type="number"] {
#recovery-step-2-close {
display: none;
}

#recovery-transaction-hash-clipboard {
overflow: hidden;
margin: 14px;
}
2 changes: 2 additions & 0 deletions ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ <h1 data-i18n="network_spammer"></h1>
<span id="recovery-proof-transaction-pending" data-i18n="recovery_proof_transaction_pending"></span>
<span id="recovery-proof-transaction-confirmed" data-i18n="recovery_proof_transaction_confirmed"></span>
</p>
<span data-i18n="recovery_transaction_hash"></span>
<div id="recovery-transaction-hash-clipboard" class="hash"></div>
<p id="recovery-reattach-prompt" class="description"><span data-i18n="recovery_reattach_prompt"></span></p>
<button id="recovery-reattach-btn" class="btn" type="button" data-initial="reattach" data-loading="reattaching" data-i18n="reattach"></button>
<button id="recovery-step-2-close" class="btn btn-no-loading" type="button" data-initial="recovery_close" data-i18n="recovery_close"></button>
Expand Down
1 change: 1 addition & 0 deletions ui/js/ui.recover.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ var UI = (function (UI, $, undefined) {
$('.remodal-close').off('click')
$('#recovery-step-1').hide()
$('#recovery-step-2').fadeIn()
$('#recovery-transaction-hash-clipboard').html(UI.formatForClipboard(tx[0].hash))
_step++
checkInclusionStates(tx[0], CONFIRMATION_CHECK_TIMEOUT, function (err, confirmed) {
if (err) {
Expand Down

0 comments on commit 748c0be

Please sign in to comment.