[ACA-3258] Edit rule dialog actions section (#2692)

* Add actions service

* Create components

* Rebasing

* Add card view component

* Moved actions definition call outside of actions list component

* Localisation of parameter and action labels + read only mode for components

* Remove action option

* Default to one item in array

* Handle change of cardview

* Linting

* Add unit tests

* Fix broken unit tests

* Fix unknown word

* Add private to property
This commit is contained in:
Thomas Hunter
2022-10-06 14:07:47 +01:00
committed by GitHub
parent 08d4f46573
commit 59c7d68299
28 changed files with 914 additions and 43 deletions

View File

@@ -8,7 +8,21 @@
</div>
<mat-dialog-content class="aca-edit-rule-dialog__content">
<aca-rule-details (formValidationChanged)="formValid = $event" (formValueChanged)="formValue = $event" [value]="model"></aca-rule-details>
<div class="aca-edit-rule-dialog__content__spinner" *ngIf="loading$ | async; else ruleDetails">
<mat-progress-spinner
color="primary"
mode="indeterminate">
</mat-progress-spinner>
</div>
<ng-template #ruleDetails>
<aca-rule-details
[actionDefinitions]="actionDefinitions$ | async"
[value]="model"
(formValueChanged)="formValue = $event"
(formValidationChanged)="formValid = $event">
</aca-rule-details>
</ng-template>
</mat-dialog-content>
<mat-dialog-actions align="end" class="aca-edit-rule-dialog__footer">