mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
* [ACS-5088] Replaced method calls in templates with variables * [ACS-5088] Replaced method calls in templates with variables * [ACS-5088] Replaced method calls for *ngIf and *ngFor with variables - Batch 1 (WIP) * [ACS-5088] Replaced method calls for *ngIf and *ngFor with variables - Batch 2 (WIP) * [ACS-5088] Replaced instances of $any with cast pipe. Replaced other instances of method calls in templates with variables * [ACS-5088] Resolved test cases * [ACS-5088] Resolved test cases in aca-content library * [ACS-5088] Resolved test cases in aca-shared library * [ACS-5088] Resolved test cases in aca-folder-rules library * [ACS-5088] Reverted usage of cast pipe to $any() * [ACS-5088] Fixed incorrect revert * [ACS-5088] Resolved code review findings - shortened expressions and made onDestroy subjects use void instead of boolean * [ACS-5088] Resolved code review findings - changed parameter name in sort function * [ACS-5088] Resolved code review findings - added 'void' type to onDestroy subjects * [ACS-5088] Upgraded eslint version to 8.41.0. Added "@angular-eslint/template/no-call-expression" rule to prevent function calls in templates unless needed (reports warnings) * [ACS-5088] Resolved typo in ToggleFavoriteComponent
34 lines
1.1 KiB
HTML
34 lines
1.1 KiB
HTML
<div class="aca-rule-action-list__item " *ngFor="let control of formControls">
|
|
<aca-rule-action
|
|
[actionDefinitions]="actionDefinitions"
|
|
[parameterConstraints]="parameterConstraints"
|
|
[readOnly]="readOnly"
|
|
[formControl]="control"
|
|
[nodeId]="nodeId">
|
|
</aca-rule-action>
|
|
|
|
<button
|
|
mat-icon-button
|
|
data-automation-id="rule-action-list-action-menu"
|
|
*ngIf="!readOnly" [matMenuTriggerFor]="menu">
|
|
<mat-icon>more_vert</mat-icon>
|
|
</button>
|
|
|
|
<mat-menu #menu>
|
|
<button
|
|
mat-menu-item
|
|
data-automation-id="rule-action-list-remove-action-button"
|
|
[title]="'ACA_FOLDER_RULES.RULE_DETAILS.ACTION_BUTTONS.REMOVE' | translate"
|
|
[disabled]="formControls.length <= 1"
|
|
(click)="removeAction(control)">
|
|
<mat-icon>delete</mat-icon>
|
|
<span>{{ 'ACA_FOLDER_RULES.RULE_DETAILS.ACTION_BUTTONS.REMOVE' | translate }}</span>
|
|
</button>
|
|
</mat-menu>
|
|
</div>
|
|
|
|
<button mat-button data-automation-id="rule-action-list-add-action-button" (click)="addAction()" *ngIf="!readOnly">
|
|
<mat-icon>add</mat-icon>
|
|
<span>{{ 'ACA_FOLDER_RULES.RULE_DETAILS.ACTION_BUTTONS.ADD_ACTION' | translate }}</span>
|
|
</button>
|