Merge pull request #6675 from wbalbo/fix-add-confirmation-deletion-email-rules

Fix: adding a confirmation for the deletion of Email Rule
This commit is contained in:
Nicolas Dorier
2025-04-21 00:02:24 +09:00
committed by GitHub
4 changed files with 48 additions and 23 deletions

View File

@@ -72,6 +72,7 @@ namespace BTCPayServer.Controllers
store.SetStoreBlob(blob);
await _storeRepo.UpdateStore(store);
this.TempData.SetStatusSuccess(StringLocalizer["Email rule successfully created"]);
return RedirectToAction(nameof(StoreEmailRulesList), new { storeId });
}
@@ -111,6 +112,7 @@ namespace BTCPayServer.Controllers
store.SetStoreBlob(blob);
await _storeRepo.UpdateStore(store);
this.TempData.SetStatusSuccess(StringLocalizer["Email rule successfully updated"]);
return RedirectToAction(nameof(StoreEmailRulesList), new { storeId });
}
@@ -128,6 +130,7 @@ namespace BTCPayServer.Controllers
store.SetStoreBlob(blob);
await _storeRepo.UpdateStore(store);
this.TempData.SetStatusSuccess(StringLocalizer["Email rule successfully deleted"]);
return RedirectToAction(nameof(StoreEmailRulesList), new { storeId });
}