From c90366ab05ef98f7b04308e951d3869fa1a59848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Wed, 27 Nov 2019 15:55:05 +0300 Subject: [PATCH] Should completely hide the tenant switch area if multi-tenancy is not enabled --- .../Themes/Basic/Layouts/Account.cshtml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/Themes/Basic/Layouts/Account.cshtml b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/Themes/Basic/Layouts/Account.cshtml index 7b43c6d969..13d438441d 100644 --- a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/Themes/Basic/Layouts/Account.cshtml +++ b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic/Themes/Basic/Layouts/Account.cshtml @@ -53,11 +53,14 @@
+ @if (MultiTenancyOptions.Value.IsEnabled && + (TenantResolveResultAccessor.Result?.AppliedResolvers?.Contains(CookieTenantResolveContributor.ContributorName) == true)) + {
- @MultiTenancyStringLocalizer["Tenant"]
+ @MultiTenancyStringLocalizer["Tenant"]
@if (CurrentTenant.Id == null) { @@ -72,15 +75,12 @@
- @if (MultiTenancyOptions.Value.IsEnabled && - (TenantResolveResultAccessor.Result?.AppliedResolvers?.Contains(CookieTenantResolveContributor.ContributorName) == true)) - { - @MultiTenancyStringLocalizer["Switch"] - } + @MultiTenancyStringLocalizer["Switch"]
-
+
+ } @(await Component.InvokeAsync()) @RenderBody()