Improve create first store view (#5181)

* Improve create first store view

Closes #5008.

* Fix tests
This commit is contained in:
d11n
2023-07-19 15:21:16 +02:00
committed by GitHub
parent 19d5e64063
commit 0017f236a7
6 changed files with 85 additions and 43 deletions

View File

@@ -39,12 +39,12 @@ namespace BTCPayServer.Controllers
[HttpGet("create")]
[Authorize(AuthenticationSchemes = AuthenticationSchemes.Cookie, Policy = Policies.CanModifyStoreSettingsUnscoped)]
public async Task<IActionResult> CreateStore()
public async Task<IActionResult> CreateStore(bool skipWizard)
{
var stores = await _repo.GetStoresByUserId(GetUserId());
var vm = new CreateStoreViewModel
{
IsFirstStore = !stores.Any(),
IsFirstStore = !(stores.Any() || skipWizard),
DefaultCurrency = StoreBlob.StandardDefaultCurrency,
Exchanges = GetExchangesSelectList(null)
};