mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Run dotnet format (#3244)
This commit is contained in:
@@ -19,7 +19,7 @@ namespace BTCPayServer.Controllers
|
||||
var user = await _userManager.GetUserAsync(User);
|
||||
if (user.DisabledNotifications == "all")
|
||||
{
|
||||
return View(new NotificationSettingsViewModel() {All = true});
|
||||
return View(new NotificationSettingsViewModel() { All = true });
|
||||
}
|
||||
var disabledNotifications =
|
||||
user.DisabledNotifications?.Split(';', StringSplitOptions.RemoveEmptyEntries)?.ToList() ??
|
||||
@@ -29,7 +29,7 @@ namespace BTCPayServer.Controllers
|
||||
disabledNotifications.Contains(tuple.identifier, StringComparer.InvariantCultureIgnoreCase))))
|
||||
.ToList();
|
||||
|
||||
return View(new NotificationSettingsViewModel() {DisabledNotifications = notifications});
|
||||
return View(new NotificationSettingsViewModel() { DisabledNotifications = notifications });
|
||||
}
|
||||
|
||||
[HttpPost("notifications")]
|
||||
@@ -56,7 +56,8 @@ namespace BTCPayServer.Controllers
|
||||
await _userManager.UpdateAsync(user);
|
||||
TempData.SetStatusMessageModel(new StatusMessageModel()
|
||||
{
|
||||
Message = "Updated successfully.", Severity = StatusMessageModel.StatusSeverity.Success
|
||||
Message = "Updated successfully.",
|
||||
Severity = StatusMessageModel.StatusSeverity.Success
|
||||
});
|
||||
return RedirectToAction("NotificationSettings");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user