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

Commit 111b777

Browse files
committed
Some trash
1 parent b722abb commit 111b777

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

app/js/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -524,12 +524,12 @@ var UI = (function(UI, undefined) {
524524

525525
content += "<div class='input-group'>"
526526
+ "<label data-i18n=light_wallet_user'>" + i18n.t("light_wallet_user") + "</label>"
527-
+ "<input type='text' min='" + configuration.lightWalletUser + "' name='light_wallet_user' id='light_wallet_user' placeholder='' value='" + String(configuration.lightWalletUser ? configuration.lightWalletUser : '').escapeHTML() + "' />"
527+
+ "<input type='text' min='" + configuration.lightWalletUser + "' name='light_wallet_user' id='light_wallet_user' placeholder='' value='" + UI.format(configuration.lightWalletUser ? configuration.lightWalletUser : '') + "' />"
528528
+ "</div>";
529529

530530
content += "<div class='input-group'>"
531531
+ "<label data-i18n=light_wallet_password'>" + i18n.t("light_wallet_password") + "</label>"
532-
+ "<input type='password' min='" + configuration.lightWalletPassword + "' name='light_wallet_password' id='light_wallet_password' placeholder='' value='" + String(configuration.lightWalletPassword ? configuration.lightWalletPassword : '').escapeHTML() + "' />"
532+
+ "<input type='password' min='" + configuration.lightWalletPassword + "' name='light_wallet_password' id='light_wallet_password' placeholder='' value='" + UI.format(configuration.lightWalletPassword ? configuration.lightWalletPassword : '') + "' />"
533533
+ "</div>";
534534

535535
content += "<div class='input-group'><label data-i18n='min_weight_magnitude'>" + i18n.t("min_weight_magnitude") + "</label>" +
@@ -597,11 +597,11 @@ var UI = (function(UI, undefined) {
597597
config.lightWalletHost = res[1];
598598
config.lightWalletPort = res[2];
599599

600-
var lightWalletUser = document.getElementById("light_wallet_user").value;
600+
var lightWalletUser = '' //document.getElementById("light_wallet_user").value;
601601
if (lightWalletUser !== "") {
602602
config.lightWalletUser = lightWalletUser;
603603
}
604-
var lightWalletPassword = document.getElementById("light_wallet_password").value;
604+
var lightWalletPassword = '' //document.getElementById("light_wallet_password").value;
605605
if (lightWalletPassword !== "") {
606606
config.lightWalletPassword = lightWalletPassword;
607607
}

app/windows/setup.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,19 @@ <h1 id="title" data-i18n="choose_wallet_type"></h1>
2222
<div id="light-node-section">
2323
<p class="label"><span data-i18n="host"></span>: <span id="host-error" class="error"></span></p>
2424
<p><select name="host_select" id="host-select" style="width:100%;font-size:110%"></select></p>
25-
<p><input type="text" name="host" id="host" placeholder="" value="" style="width:100%;font-size:110%" data-i18n="[placeholder]custom_host" /></p>
25+
<p id="">
26+
<input type="text" name="host" id="host" placeholder="" value="" style="width:100%;font-size:110%" data-i18n="[placeholder]custom_host" />
27+
28+
<div class="input-group">
29+
<label for="light_wallet_user" data-i18n="light_wallet_user"></label>
30+
<input type="text" name="light_wallet_user" id="light_wallet_user" />
31+
</div>
32+
33+
<div class="input-group">
34+
<label form="light_wallet_password" data-i18n="light_wallet_password"></label>
35+
<input type="text" name="light_wallet_password" id="light_wallet_password" />
36+
</div>
37+
</p>
2638
<p class="note" id="host-format-example" data-i18n="add_in_following_format_example"></p>
2739
</div>
2840
<div id="full-node-section">

locales/en/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@
309309
"invalid_response":"Invalid Response",
310310
"no_connection_to_host":"No Connection to Host",
311311
"request_error":"Request Error",
312-
"invalid_transaction_hash": "Invalid Transaction Hash"
312+
"invalid_transaction_hash": "Invalid Transaction Hash",
313313

314314
"light_wallet_user":"Username",
315315
"light_wallet_password": "Password"

0 commit comments

Comments
 (0)