abp icon indicating copy to clipboard operation
abp copied to clipboard

Disabled Multi-Tenancy and get the boolean

Open ChangYinShung opened this issue 6 years ago • 1 comments

hello , When i disabled MultiTenancy,

namespace FSTest.MultiTenancy
{
    public static class MultiTenancyConsts
    {
        /* Enable/disable multi-tenancy easily in a single point.
         * If you will never need to multi-tenancy, you can remove
         * related modules and code parts, including this file.
         */
        public const bool IsEnabled = false;
    }
}

Where can i get MultiTenancy.IsEnabled value in anuglar?

In aspnetzero version,when i disabled multiTenancy , i can get the value from javascript

abp.multiTenancy.isEnabled = false

In AbpVnext (In angular)ConfigState,SessionState ,dont have multiTenancy.isEnable

here is my use case

  1. i want to hide tenant selector in login page when multiTenancy is disabled.
  2. When admin login in , I want to hide the page "tenant management".

ChangYinShung avatar Feb 21 '20 10:02 ChangYinShung

Depends on https://github.com/abpframework/abp/issues/2982

hikalkan avatar Mar 05 '20 09:03 hikalkan