mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACS-8956] Add new ESLint rule for self-closing tags (#4211)
This commit is contained in:
@@ -2,28 +2,28 @@
|
||||
<ng-container [ngSwitch]="actionRef.type">
|
||||
<ng-container *ngSwitchCase="'menu'">
|
||||
<button mat-menu-item [id]="actionRef.id" [matMenuTriggerFor]="childMenu">
|
||||
<adf-icon [value]="actionRef.icon" class="app-context-menu-item--icon"></adf-icon>
|
||||
<adf-icon [value]="actionRef.icon" class="app-context-menu-item--icon" />
|
||||
<span [attr.data-automation-id]="actionRef.id + '-label'">{{ actionRef.title | translate }}</span>
|
||||
</button>
|
||||
|
||||
<mat-menu #childMenu="matMenu">
|
||||
<ng-container *ngFor="let child of actionRef.children; trackBy: trackByActionId">
|
||||
<app-context-menu-item [actionRef]="child"></app-context-menu-item>
|
||||
<app-context-menu-item [actionRef]="child" />
|
||||
</ng-container>
|
||||
</mat-menu>
|
||||
</ng-container>
|
||||
|
||||
<ng-container *ngSwitchCase="'separator'">
|
||||
<mat-divider></mat-divider>
|
||||
<mat-divider />
|
||||
</ng-container>
|
||||
|
||||
<ng-container *ngSwitchCase="'custom'">
|
||||
<adf-dynamic-component [data]="actionRef.data" [id]="actionRef.component"></adf-dynamic-component>
|
||||
<adf-dynamic-component [data]="actionRef.data" [id]="actionRef.component" />
|
||||
</ng-container>
|
||||
|
||||
<ng-container *ngSwitchDefault>
|
||||
<button mat-menu-item [id]="actionRef.id" (click)="runAction()">
|
||||
<adf-icon [value]="actionRef.icon" class="app-context-menu-item--icon"></adf-icon>
|
||||
<adf-icon [value]="actionRef.icon" class="app-context-menu-item--icon" />
|
||||
<span [attr.data-automation-id]="actionRef.id + '-label'">{{ actionRef.title | translate }}</span>
|
||||
</button>
|
||||
</ng-container>
|
||||
|
@@ -5,30 +5,30 @@
|
||||
<ng-container *ngFor="let entry of actions; trackBy: trackByActionId" [ngSwitch]="entry.type">
|
||||
<ng-container *ngSwitchDefault>
|
||||
<button mat-menu-item [id]="entry.id" (click)="runAction(entry)">
|
||||
<adf-icon [value]="entry.icon" class="app-context-menu-item--icon"></adf-icon>
|
||||
<adf-icon [value]="entry.icon" class="app-context-menu-item--icon" />
|
||||
<span [attr.data-automation-id]="entry.id + '-label'">{{ entry.title | translate }}</span>
|
||||
</button>
|
||||
</ng-container>
|
||||
|
||||
<ng-container *ngSwitchCase="'separator'">
|
||||
<mat-divider></mat-divider>
|
||||
<mat-divider />
|
||||
</ng-container>
|
||||
|
||||
<ng-container *ngSwitchCase="'menu'">
|
||||
<button mat-menu-item [id]="entry.id" [matMenuTriggerFor]="childMenu">
|
||||
<adf-icon [value]="entry.icon" class="app-context-menu-item--icon"></adf-icon>
|
||||
<adf-icon [value]="entry.icon" class="app-context-menu-item--icon" />
|
||||
<span [attr.data-automation-id]="entry.id + '-label'">{{ entry.title | translate }}</span>
|
||||
</button>
|
||||
|
||||
<mat-menu #childMenu="matMenu">
|
||||
<ng-container *ngFor="let child of entry.children; trackBy: trackByActionId">
|
||||
<app-context-menu-item [actionRef]="child"></app-context-menu-item>
|
||||
<app-context-menu-item [actionRef]="child" />
|
||||
</ng-container>
|
||||
</mat-menu>
|
||||
</ng-container>
|
||||
|
||||
<ng-container *ngSwitchCase="'custom'">
|
||||
<adf-dynamic-component [data]="entry.data" [id]="entry.component"></adf-dynamic-component>
|
||||
<adf-dynamic-component [data]="entry.data" [id]="entry.component" />
|
||||
</ng-container>
|
||||
</ng-container>
|
||||
</mat-menu>
|
||||
|
Reference in New Issue
Block a user