core/docs/support-outlet/support-outlet.component.ts
OnInit
selector | c8y-support-outlet |
templateUrl | ./support-outlet.component.html |
Properties |
Methods |
|
constructor(ui: AppStateService, optionsService: OptionsService, modalService: ModalService, translateService: TranslateService, tenantService: TenantService, alertService: AlertService, userService: UserService, headerService: HeaderService)
|
|||||||||||||||||||||||||||
Parameters :
|
Async activateSupportAccess |
activateSupportAccess()
|
Returns :
any
|
Async deactivateSupportAccess |
deactivateSupportAccess()
|
Returns :
any
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
drawerOpen$ |
Type : Observable<boolean>
|
isCollapsed |
Type : boolean
|
isCollapsible |
Type : boolean
|
PRODUCT_EXPERIENCE |
Default value : PRODUCT_EXPERIENCE_CORE_SHARED
|
supportUrl |
Type : string | boolean
|
supportUserEnabled$ |
Type : Observable<boolean>
|
tabIndex$ |
Type : Observable<"0" | "-1">
|
textClass |
Type : string
|
Public ui |
Type : AppStateService
|
userSupportAvailable |
Type : boolean
|
<button
class="c8y-right-drawer__link sticky-top"
[tabindex]="tabIndex$ | async"
type="button"
(click)="isCollapsed = !isCollapsed"
*ngIf="isCollapsible"
>
<i c8yIcon="c8y-c8y-support"></i>
<span class="text-bold">{{ 'Support' | translate }}</span>
<i
class="m-l-auto"
c8yIcon="angle-up"
[ngClass]="{ 'icon-rotate-180': isCollapsed }"
></i>
</button>
<div
class="collapse"
id="collapseSupport"
[collapse]="isCollapsed"
[isAnimated]="true"
>
<button
class="c8y-right-drawer__link"
title="{{ 'Activate support access' | translate }}"
[tabindex]="tabIndex$ | async"
*ngIf="!(supportUserEnabled$ | async) && userSupportAvailable"
(click)="activateSupportAccess()"
c8yProductExperience
[actionName]="PRODUCT_EXPERIENCE.QUICK_LINKS.EVENTS.QUICK_LINK_RIGHT_DRAWER"
>
<i
c8yIcon="c8y-c8y-support"
*ngIf="!isCollapsible"
></i>
<span
[class]="textClass"
title="{{ 'Activate support access' | translate }}"
>
{{ 'Activate support access' | translate }}
</span>
</button>
<button
class="c8y-right-drawer__link"
title="{{ 'Deactivate support access' | translate }}"
[tabindex]="tabIndex$ | async"
*ngIf="(supportUserEnabled$ | async) && userSupportAvailable"
(click)="deactivateSupportAccess()"
c8yProductExperience
[actionName]="PRODUCT_EXPERIENCE.QUICK_LINKS.EVENTS.QUICK_LINK_RIGHT_DRAWER"
>
<i
c8yIcon="c8y-c8y-support"
*ngIf="!isCollapsible"
></i>
<span
[class]="textClass"
title="{{ 'Deactivate support access' | translate }}"
>
{{ 'Deactivate support access' | translate }}
</span>
</button>
<a
class="c8y-right-drawer__link"
[ngClass]="{'separator-top': !isCollapsible}"
title="{{ 'Request support' | translate }}"
[tabindex]="tabIndex$ | async"
role="button"
target="_blank"
*ngIf="supportUrl"
rel="noopener noreferrer"
[href]="supportUrl"
c8yProductExperience
[actionName]="PRODUCT_EXPERIENCE.QUICK_LINKS.EVENTS.QUICK_LINK_RIGHT_DRAWER"
>
<i
c8yIcon="c8y-c8y-support"
*ngIf="!isCollapsible"
></i>
<span
[class]="textClass"
title="{{ 'Request support' | translate }}"
>
{{ 'Request support' | translate }}
</span>
</a>
</div>