Update Maintenance.cshtml (#2576)

* Update Maintenance.cshtml

* fix BTCPay Server maintenance error

* Rephrase "derivation settings" to "wallet settings"

* Pay button text fix

* rephrase CoinSwitch description
This commit is contained in:
Pavlenex 2021-06-17 12:40:08 +02:00 committed by GitHub
parent 70fcd053cd
commit 1c440ed36c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 13 deletions

View File

@ -106,7 +106,7 @@ namespace BTCPayServer.Controllers
MaintenanceViewModel vm = new MaintenanceViewModel(); MaintenanceViewModel vm = new MaintenanceViewModel();
vm.CanUseSSH = _sshState.CanUseSSH; vm.CanUseSSH = _sshState.CanUseSSH;
if (!vm.CanUseSSH) if (!vm.CanUseSSH)
TempData[WellKnownTempData.ErrorMessage] = "Maintenance feature requires access to SSH properly configured in BTCPayServer configuration."; TempData[WellKnownTempData.ErrorMessage] = "Maintenance feature requires access to SSH properly configured in BTCPay Server configuration.";
vm.DNSDomain = this.Request.Host.Host; vm.DNSDomain = this.Request.Host.Host;
if (IPAddress.TryParse(vm.DNSDomain, out var unused)) if (IPAddress.TryParse(vm.DNSDomain, out var unused))
vm.DNSDomain = null; vm.DNSDomain = null;
@ -121,7 +121,7 @@ namespace BTCPayServer.Controllers
if (!vm.CanUseSSH) if (!vm.CanUseSSH)
{ {
TempData[WellKnownTempData.ErrorMessage] = "Maintenance feature requires access to SSH properly configured in BTCPayServer configuration."; TempData[WellKnownTempData.ErrorMessage] = "Maintenance feature requires access to SSH properly configured in BTCPay Server configuration.";
return View(vm); return View(vm);
} }
if (!ModelState.IsValid) if (!ModelState.IsValid)

View File

@ -186,7 +186,7 @@ namespace BTCPayServer.Controllers
await _Repo.UpdateStore(store); await _Repo.UpdateStore(store);
_EventAggregator.Publish(new WalletChangedEvent {WalletId = new WalletId(vm.StoreId, vm.CryptoCode)}); _EventAggregator.Publish(new WalletChangedEvent {WalletId = new WalletId(vm.StoreId, vm.CryptoCode)});
TempData[WellKnownTempData.SuccessMessage] = $"Derivation settings for {network.CryptoCode} have been updated."; TempData[WellKnownTempData.SuccessMessage] = $"Wallet settings for {network.CryptoCode} have been updated.";
// This is success case when derivation scheme is added to the store // This is success case when derivation scheme is added to the store
return RedirectToAction(nameof(UpdateStore), new {storeId = vm.StoreId}); return RedirectToAction(nameof(UpdateStore), new {storeId = vm.StoreId});
@ -377,7 +377,7 @@ namespace BTCPayServer.Controllers
return checkResult; return checkResult;
} }
TempData[WellKnownTempData.SuccessMessage] = $"Derivation settings for {network.CryptoCode} have been updated."; TempData[WellKnownTempData.SuccessMessage] = $"Wallet settings for {network.CryptoCode} have been updated.";
return RedirectToAction(nameof(UpdateStore), new {storeId}); return RedirectToAction(nameof(UpdateStore), new {storeId});
} }

View File

@ -24,15 +24,15 @@
</div> </div>
<h4 class="mt-5 mb-3">Update</h4> <h4 class="mt-5 mb-3">Update</h4>
<p class="text-secondary">Update to the latest version of BTCPay server.</p> <p class="text-secondary">Update to the latest version of BTCPay Server.</p>
<div class="form-group"> <div class="form-group">
<div class="input-group"> <div class="input-group">
<button name="command" type="submit" class="btn btn-primary" value="update" disabled="@(Model.CanUseSSH ? null : "disabled")">Update</button> <button name="command" type="submit" class="btn btn-primary" value="update" disabled="@(Model.CanUseSSH ? null : "disabled")">Update</button>
</div> </div>
</div> </div>
<h4 class="mt-5 mb-3">Restart</h4> <h4 class="mt-5 mb-3">Restart</h4>
<p class="text-secondary">Restart BTCPay server and related services.</p> <p class="text-secondary">Restart BTCPay Server and related services.</p>
<div class="form-group"> <div class="form-group">
<div class="input-group"> <div class="input-group">
<button name="command" type="submit" class="btn btn-primary" value="restart" disabled="@(Model.CanUseSSH ? null : "disabled")">Restart</button> <button name="command" type="submit" class="btn btn-primary" value="restart" disabled="@(Model.CanUseSSH ? null : "disabled")">Restart</button>
@ -40,7 +40,7 @@
</div> </div>
<h4 class="mt-5 mb-3">Clean</h4> <h4 class="mt-5 mb-3">Clean</h4>
<p class="text-secondary">Delete unused docker images present on your system.</p> <p class="text-secondary">Delete unused Docker images present on your system.</p>
<div class="form-group"> <div class="form-group">
<div class="input-group"> <div class="input-group">
<button name="command" type="submit" class="btn btn-secondary" value="clean" disabled="@(Model.CanUseSSH ? null : "disabled")">Clean</button> <button name="command" type="submit" class="btn btn-secondary" value="clean" disabled="@(Model.CanUseSSH ? null : "disabled")">Clean</button>

View File

@ -9,7 +9,7 @@
CoinSwitch CoinSwitch
</strong> </strong>
<span title="" class="d-flex me-3"> <span title="" class="d-flex me-3">
<span class="text-secondary">Allows your customers to pay with altcoins that are not supported by BTCPay Server.</span> <span class="text-secondary">Accept payments in altcoins that are not supported by BTCPay Server.</span>
</span> </span>
</span> </span>
<span class="d-flex align-items-center fw-semibold"> <span class="d-flex align-items-center fw-semibold">

View File

@ -7,14 +7,13 @@
<div class="col-md-10"> <div class="col-md-10">
<h4 class="mb-3">@ViewData["PageTitle"]</h4> <h4 class="mb-3">@ViewData["PageTitle"]</h4>
<p> <p>
To start using Pay Buttons you need to explicitly turn on this feature. To start using Pay Button, you need to enable this feature explicitly.
Once you do so, any 3rd party entity will be able to create an invoice on your instance store (via API for example). Once you do so, anyone could create an invoice on your store (via API, for example).
The POS app is preauthorised and does not need this enabled.
</p> </p>
<form method="post"> <form method="post">
@Html.Hidden("EnableStore", true) @Html.Hidden("EnableStore", true)
<button name="command" type="submit" value="save" class="btn btn-primary"> <button name="command" type="submit" value="save" class="btn btn-primary">
Allow outside world to create invoices via API Enable
</button> </button>
</form> </form>
</div> </div>