@using Microsoft.AspNetCore.Mvc.TagHelpers @using BTCPayServer.Abstractions.Extensions @using BTCPayServer.Abstractions.TagHelpers @using BTCPayServer.Abstractions.Contracts @inject BTCPayServer.Services.BTCPayServerEnvironment Env @inject SignInManager SignInManager @inject IFileService FileService @model BTCPayServer.Components.StoreSelector.StoreSelectorViewModel @functions { @* ReSharper disable once CSharpWarnings::CS1998 *@ #pragma warning disable 1998 private async Task LogoContent() { var logoSrc = $"{ViewContext.HttpContext.Request.PathBase}/img/logo.svg"; @if (Env.NetworkType != NBitcoin.ChainName.Mainnet) { @Env.NetworkType.ToString() } } private string StoreName(string title) { return string.IsNullOrEmpty(title) ? "Unnamed Store" : title; } #pragma warning restore 1998 } @if (Model.CurrentStoreId == null) { @{await LogoContent();} } else if (Model.CurrentStoreIsOwner) { @{await LogoContent();} } else { @{await LogoContent();} }
@if (Model.Options.Count > 0) { } else if (SignInManager.IsSignedIn(User)) { Create Store }