Open Closed

change the styles based on set tenant event in angular UI #6818


User avatar
0
smansuri created
  • ABP Framework version: v7.3.2
  • UI Type: Angular
  • Database System: EF Core (MySQL)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue: I want subscribe settenant and setstyle events and based on the tenant name i would like to load a separate styles.css files. i have gone through below link but its very old version. but i would like to subscribe settenant event as shown in the below link. please suggest. https://support.abp.io/QA/Questions/83/Tenant-Settings

5 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello,

    Could you please elaborate more on your question or please share steps to reproduce the issue.

    thanks,

  • User Avatar
    0
    smansuri created

    i would like to change the theme/globalstyles which overwrites the current theme based on subdomain. Angular UI we are using multi tenancy with subdomain. for each subdomain/tenant we would like to have separate goblastyles which overwrites the current default theme.

  • User Avatar
    0
    smansuri created

    i would like to change the theme/globalstyles which overwrites the current theme based on subdomain. Angular UI we are using multi tenancy with subdomain. for each subdomain/tenant we would like to have separate goblastyles which overwrites the current default theme.

    Please provide an update on this

  • User Avatar
    0
    smansuri created

    its been 5 days and i have not seen any updated here. what kind of support are you providing.

  • User Avatar
    0
    masum.ulu created
    Support Team Angular Expert

    Hi,

    Actually if you think carefully you can solve this problem easily, In ABP DOCUMENTATION we have DESCRIBED how to reach CURRENT TENANT and this is OBSERVABLE which means you can TRACK current tenant. If you want to load style per tenant you can use tenant id, ORR

    Track the URL via ANGULAR ROUTER EVENT and handle the DOMAIN and load styles VIA LAZY LOAD SERVICE sooo

    in summary it was enough to make a little bit research and we're supporting for lack of system not for specific custom logic 🙂

    I hope I could answer your question.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35