[AAE-15988] Update About component (#8814)

* [AAE-15988] Update About component

* [AAE-15988] Add automationId to AboutPanel directive
This commit is contained in:
Wiktor Danielewski
2023-08-11 16:11:58 +02:00
committed by GitHub
parent e7dbedd497
commit 57ff885483
2 changed files with 2 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ import { ContentChild, Directive, Input, TemplateRef } from '@angular/core';
})
export class AboutPanelDirective {
@Input() label!: string;
@Input() automationId: string;
@ContentChild(TemplateRef)
layoutTemplate!: TemplateRef<any>;

View File

@@ -1,6 +1,6 @@
<mat-accordion [togglePosition]="'before'" class="adf-about-panel">
<ng-container *ngFor="let panel of panels">
<mat-expansion-panel>
<mat-expansion-panel [attr.data-automation-id]="panel.automationId">
<mat-expansion-panel-header class="adf-about-panel-header">
<mat-panel-title class="adf-about-panel-header__title">{{panel.label}}</mat-panel-title>
</mat-expansion-panel-header>