mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 05:54:26 +01:00
changing check box to toggle in various setting views (#5769)
* Resolves: check box to toggle in various setting views * resolve conflicts * Notification logic reversal * remove transform property in the toggle * Handle email tls certificate check * Unifications and fixes --------- Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
This commit is contained in:
committed by
GitHub
parent
912a706de9
commit
d0e11f1ec4
@@ -26,7 +26,7 @@ namespace BTCPayServer.Controllers
|
||||
new List<string>();
|
||||
var notifications = notificationHandlers.SelectMany(handler => handler.Meta.Select(tuple =>
|
||||
new SelectListItem(tuple.name, tuple.identifier,
|
||||
disabledNotifications.Contains(tuple.identifier, StringComparer.InvariantCultureIgnoreCase))))
|
||||
!disabledNotifications.Contains(tuple.identifier, StringComparer.InvariantCultureIgnoreCase))))
|
||||
.ToList();
|
||||
|
||||
return View(new NotificationSettingsViewModel { DisabledNotifications = notifications });
|
||||
@@ -46,7 +46,7 @@ namespace BTCPayServer.Controllers
|
||||
}
|
||||
else if (command == "update")
|
||||
{
|
||||
var disabled = vm.DisabledNotifications.Where(item => item.Selected).Select(item => item.Value)
|
||||
var disabled = vm.DisabledNotifications.Where(item => !item.Selected).Select(item => item.Value)
|
||||
.ToArray();
|
||||
user.DisabledNotifications = disabled.Any()
|
||||
? string.Join(';', disabled) + ";"
|
||||
|
||||
Reference in New Issue
Block a user