Skip to content

Commit

Permalink
Merge pull request #81 from cryptozoidberg/copy-button
Browse files Browse the repository at this point in the history
add copy-wallet button
  • Loading branch information
cryptozoidberg authored Nov 13, 2018
2 parents e79d48b + e8cd96c commit c0aaf09
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 7 deletions.
7 changes: 7 additions & 0 deletions src/gui/qt-daemon/html/files/copy-content.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/gui/qt-daemon/html/files/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,11 @@ function on_close_wallet()
Qt_parent.close_wallet();
}

function on_copy_wallet () {
var $addressValue = $('#wallet_address').text();
Qt_parent.place_to_clipboard($addressValue);
alert('Wallet address was copy.')
}

var last_timerId;

Expand Down
25 changes: 19 additions & 6 deletions src/gui/qt-daemon/html/files/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -445,12 +445,6 @@ span.daemon_view_general_status_value_fail_text
animation-iteration-count: infinite;
}

#close_wallet_button_id
{
float: right;
margin-left: 480px;
}

.details {
margin-top: 35px;
padding-bottom: 12px;
Expand Down Expand Up @@ -743,6 +737,25 @@ input:focus {
.btn:focus {
outline: none;
}

.btn-icon {
position: relative;
top: 8px;
margin-right: 10px;
display: inline-block;
width: 22px;
height: 22px;
background-image: url('../files/copy-content.svg');
background-size: cover;
background-position: center;
cursor: pointer;
}

.btn-group {
float: right;
margin-left: 480px;
}

.wrap {
width: 50%;
}
Expand Down
6 changes: 5 additions & 1 deletion src/gui/qt-daemon/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@
<span class="wallet_sync">
<img class="wallet_img" src="files/done_icon.png" alt="done-icon">
Synced</span>
<div id="close_wallet_button_id" class="common_button btn btn-grey">Close wallet</div>

<div class="btn-group">
<span class='btn-icon' id='copy-wallet'></span>
<div id="close_wallet_button_id" class="common_button btn btn-grey">Close wallet</div>
</div>
</div>
</div id>

Expand Down

0 comments on commit c0aaf09

Please sign in to comment.