diff options
| author | Jaquee <jaquee.monero@gmail.com> | 2017-01-04 17:25:22 +0100 |
|---|---|---|
| committer | Jaquee <jaquee.monero@gmail.com> | 2017-01-15 12:32:25 +0100 |
| commit | fd983955b4dbdbd612fbdf5ed08d8c8a049fb840 (patch) | |
| tree | 998ef5867e5439aa96c19439c1fe65eb244d51cb /wizard/utils.js | |
| parent | 8f56e9839739c8b0d821b1b38c06e458a1ab6d06 (diff) | |
| download | monzero-gui-fd983955b4dbdbd612fbdf5ed08d8c8a049fb840.tar.gz monzero-gui-fd983955b4dbdbd612fbdf5ed08d8c8a049fb840.tar.xz monzero-gui-fd983955b4dbdbd612fbdf5ed08d8c8a049fb840.zip | |
view only wallets
wizard: fix dots on pw page
wizard: fix focus on pw field
viewOnly: added success message
Diffstat (limited to 'wizard/utils.js')
| -rw-r--r-- | wizard/utils.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/wizard/utils.js b/wizard/utils.js index 7b9fc241..65409046 100644 --- a/wizard/utils.js +++ b/wizard/utils.js @@ -15,3 +15,10 @@ function tr(text) { function lineBreaksToSpaces(text) { return text.trim().replace(/(\r\n|\n|\r)/gm, " "); } + +function usefulName(path) { + // arbitrary "short enough" limit + if (path.length < 32) + return path + return path.replace(/.*[\/\\]/, '').replace(/\.keys$/, '') +} |
