mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
Empty states: Setup guide for store and wallet (#3255)
* Store Selector: Create first store button * Add setup guide to homepage * Policy update for stores list * Fix test * Initial create store button as primary * Add notifications list to homepage * Remove back to list from store create view * Adapt content padding on desktop * Add store home view with setup guide * Fix active page nav highlighting * Test fix * Remove What's Next section * Rename Store Home to Dashboard * Fix Lightning setup link * Add tests for store setup guide * Update BTCPayServer/Views/Home/Home.cshtml Co-authored-by: Pavlenex <pavle@pavle.org> * Update BTCPayServer/Views/Stores/Dashboard.cshtml Co-authored-by: Pavlenex <pavle@pavle.org> * Remove setup guide on global homepage * Remove Shopify setup link from nav * Fix content container max-width on desktop Co-authored-by: Pavlenex <pavle@pavle.org>
This commit is contained in:
@@ -47,7 +47,7 @@ namespace BTCPayServer.Controllers
|
||||
var store = await _repo.CreateStore(GetUserId(), vm.Name);
|
||||
CreatedStoreId = store.Id;
|
||||
TempData[WellKnownTempData.SuccessMessage] = "Store successfully created";
|
||||
return RedirectToAction(nameof(StoresController.PaymentMethods), "Stores", new
|
||||
return RedirectToAction(nameof(StoresController.Dashboard), "Stores", new
|
||||
{
|
||||
storeId = store.Id
|
||||
});
|
||||
@@ -82,7 +82,7 @@ namespace BTCPayServer.Controllers
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
[Authorize(AuthenticationSchemes = AuthenticationSchemes.Cookie, Policy = Policies.CanViewStoreSettings)]
|
||||
[Authorize(AuthenticationSchemes = AuthenticationSchemes.Cookie, Policy = Policies.CanModifyStoreSettingsUnscoped)]
|
||||
public async Task<IActionResult> ListStores(
|
||||
string sortOrder = null,
|
||||
string sortOrderColumn = null
|
||||
|
||||
Reference in New Issue
Block a user