Base solution for your next web application
Open Closed

Is there a reference that shows how to enable or disable features on a page? #6487


User avatar
0
commondesk created

In the Topbar.component.html i see that the chat feature can be enabled or disabled on a page by setting

<li *ngIf="chatEnabled && !chatConnected" class="m-nav__item m-topbar__notifications m-topbar__notifications--img m-dropdown m-dropdown--large m-dropdown--header-bg-fill m-dropdown--arrow m-dropdown--align-center m-dropdown--mobile-full-width">

In the typescript class the definition of chatEnabled is

`get chatEnabled(): boolean {

return (!this._abpSessionService.tenantId || this.feature.isEnabled('App.ChatFeature'));

}`

So if i set App.ChatFeature to false in appsetting.json then the chat feature on the page should be made invisible.

Question: is there a reference guide that shows me all of the App.XXXXXX variables that can be set to configure what features are visible on a page?

Also, is there a reference that shows what are all of the cusomizations provided using the Pages.Administration.UiCustomization that i found in

Topbar.component.html :190 *ngIf="!isGranted('Pages.Administration.UiCustomization')

When i visit this setting in Administration > Roles > User > Edit User Role.

I dont see an option for UiCustomization.?????

Does this mean that there is a place where this is set staticly in code? or is it dynamic at runtime??


1 Answer(s)
  • User Avatar
    0
    ryancyq created
    Support Team

    Hi, what is your ANZ project version?

    When i visit this setting in Administration > Roles > User > Edit User Role.

    there should be a permission named Visual Settings in the list