mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-04 05:44:22 +01:00
Fix sign transaction
This commit is contained in:
@@ -9,14 +9,6 @@
|
||||
.hw-fields {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.pin-button {
|
||||
height: 135px;
|
||||
margin-top: 20px;
|
||||
background: white;
|
||||
border: solid lightgray 4px;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
}
|
||||
|
||||
|
||||
@@ -108,9 +108,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button id="vault-confirm" class="btn btn-primary" style="display:none;" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
Confirm pin code
|
||||
</button>
|
||||
<button id="vault-confirm" class="btn btn-primary" style="display:none;" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
<input type="hidden" asp-for="WebsocketPath" />
|
||||
</form>
|
||||
<div id="vaultPlaceholder"></div>
|
||||
<button id="vault-confirm" class="btn btn-primary" style="display:none;" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -184,6 +184,7 @@ var vaultui = (function () {
|
||||
show(VaultFeedbacks.needPin);
|
||||
$("#pin-input").css("display", "block");
|
||||
$("#vault-confirm").css("display", "block");
|
||||
$("#vault-confirm").text("Confirm the pin code");
|
||||
return new Promise(function (resolve, reject) {
|
||||
var pinCode = "";
|
||||
$("#vault-confirm").click(async function () {
|
||||
@@ -213,11 +214,12 @@ var vaultui = (function () {
|
||||
show(VaultFeedbacks.needPassphrase);
|
||||
$("#passphrase-input").css("display", "block");
|
||||
$("#vault-confirm").css("display", "block");
|
||||
$("#vault-confirm").text("Confirm the passphrase");
|
||||
return new Promise(function (resolve, reject) {
|
||||
$("#vault-confirm").click(async function () {
|
||||
var passphrase = $("#Password").val();
|
||||
if (passphrase !== $("#PasswordConfirmation").val()) {
|
||||
show("invalid-password-confirm");
|
||||
show(VaultFeedbacks.invalidPasswordConfirmation);
|
||||
return;
|
||||
}
|
||||
$("#passphrase-input").css("display", "none");
|
||||
|
||||
@@ -136,3 +136,14 @@ pre {
|
||||
.feedback-icon-failed {
|
||||
color: red;
|
||||
}
|
||||
.pin-button {
|
||||
height: 135px;
|
||||
margin-top: 20px;
|
||||
background-color: white;
|
||||
border: solid lightgray 4px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.pin-button:hover {
|
||||
background-color: lightgray;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user