Unauthorized page¶
This page can be used when user is authenticated but does not have required access permissions.
Deprecation warning
The si-unauthorized-page
component has been deprecated and will be removed in the future. Use the info page instead. It is a superset and supports the same and even more use cases.
Usage¶
When to use¶
- When an authenticated user opens an application or page without having the required permissions.
Code¶
Usage¶
import { RouterModule } from '@angular/router';
import { SiUnauthorizedPageModule } from '@siemens/element-ng';
@NgModule({
imports: [SiUnauthorizedPageModule, RouterModule, ..],
})
Use the <si-unauthorized-page [...]=...></si-unauthorized-page>
component on a page of your application and set the input properties as needed. All input strings are sent to the translate pipe by the component.
One follow-up option¶
Configure an external link, internal router link or a custom action by the link object to provide a follow-up option to leave the unauthorized page or to get additional help.
Multiple follow-up options¶
Leave the link object undefined
and use content projection to offer multiple options for the user. For example, you can set multiple buttons.
SiUnauthorizedPageComponent API Documentation¶
si-unauthorized-page
The component shall be use to indicate that an authenticated user does not have the required permissions.
Deprecated: This component is deprecated and will be removed in the future. Use the SiInfoPageComponent
component with the si-info-page
element instead. The SiInfoPageComponent
is a superset of this component and supports the same use cases and more.
Input Properties¶
Name | Type | Default | Description |
---|---|---|---|
description ¶ | TranslatableString | May be a longer description explaining the problem. | |
heading ¶ | TranslatableString | The main heading indicating the problem. | |
icon ¶ | string | 'element-warning-filled' | The element warning icon. |
link ¶ | Link | Use the link object if you have one option to follow. A link object has a title to be displayed and can be configured with an external link, a router link, or a custom action. If you want to provide multiple options, add your own content into the component. | |
subHeading ¶ | TranslatableString | A sub heading is a sentence summarizing the problem. |
Types Documentation¶
Represents a translatable string. This can either be a translation key, e.g. ACTIONS.EDIT that will be automatically translated when displayed on the UI or a pre-translated string, e.g. Edit . Equivalent to a normal string in usage and functionality. |
---|
|
Translatable import imported from @siemens/element-translate-ng |
---|
Except where otherwise noted, content on this site is licensed under MIT License.