Redirect to dashboard instead of apps list on app delete (#3941)

close #3898
This commit is contained in:
Umar Bolatov
2022-07-11 23:18:08 -07:00
committed by GitHub
parent afb989d72e
commit a7b6f3fa19
3 changed files with 5 additions and 3 deletions

View File

@@ -164,7 +164,7 @@ namespace BTCPayServer.Controllers
if (await _appService.DeleteApp(app))
TempData[WellKnownTempData.SuccessMessage] = "App deleted successfully.";
return RedirectToAction(nameof(ListApps), new { storeId = app.StoreDataId });
return RedirectToAction(nameof(UIStoresController.Dashboard), "UIStores", new { storeId = app.StoreDataId });
}
async Task<string> GetStoreDefaultCurrentIfEmpty(string storeId, string currency)