Adding checkbox for check new version policy

This commit is contained in:
rockstardev 2020-07-30 20:57:12 -05:00
parent 51211dccb0
commit 6c7d3ae0bf
3 changed files with 6 additions and 2 deletions

View file

@ -3130,7 +3130,6 @@ namespace BTCPayServer.Tests
var envMock = tester.PayTester.GetService<BTCPayServerEnvironment>();
// modifying environment to simulate production
envMock.NetworkType = NetworkType.Mainnet;
envMock.Environment.EnvironmentName = "Production";
var notificationSender = tester.PayTester.GetService<Services.Notifications.NotificationSender>();

View file

@ -24,7 +24,7 @@ namespace BTCPayServer.Services
public bool AllowHotWalletForAll { get; set; }
[Display(Name = "Allow non-admins to import their hot wallets to the node wallet")]
public bool AllowHotWalletRPCImportForAll { get; set; }
[Display(Name = "Check releases on GitHub and alert when new BTCPayServer versions is available")]
[Display(Name = "Check releases on GitHub and alert when new BTCPayServer version is available")]
public bool CheckForNewVersions { get; set; }
[Display(Name = "Display app on website root")]

View file

@ -42,6 +42,11 @@
<label asp-for="AllowHotWalletRPCImportForAll" class="form-check-label"></label>
<span asp-validation-for="AllowHotWalletRPCImportForAll" class="text-danger"></span>
</div>
<div class="form-check">
<input asp-for="CheckForNewVersions" type="checkbox" class="form-check-input" />
<label asp-for="CheckForNewVersions" class="form-check-label"></label>
<span asp-validation-for="CheckForNewVersions" class="text-danger"></span>
</div>
</div>
<div class="form-group">
<label asp-for="RootAppId"></label>