4 Commits

Author SHA1 Message Date
Thomas Hunter
59c7d68299
[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
2022-10-06 14:07:47 +01:00
Thomas Hunter
9cd616ff8c
[ACS-3256] Add trigger / "when" section to rule details & edit rule dialog (#2603)
* Add triggers section with checkboxes

* Add some unit tests

* Changed Input property of rule details so that it takes a changeable value rather than just an initial value

* Made separate component with control value accessor for triggers

* Linting

* Change trigger values to lowercase to be in sync with the API

* Minor styling changes and add new rule button to manage rules screen

* Add option for unknown field to be selected

* Add read only to nested composite and simple conditions

* Added unknown field tests for simple condition

* Linting

* Change how the triggers component displays when disabled
2022-08-23 09:54:08 +01:00
Thomas Hunter
9a650f5265
[ACS-3257] Create / Update rules dialog condition section (#2585)
* First commit: simple and composite condition UI

* Styling, readonly mode, etc...

* Unit tests for RuleSimpleConditionUiComponent

* Validation for composite condition

* Add unit tests for composite conditions

* Revert manage rules screen

* Reset karma conf singleRun to true

* Couple of small changes

* Typo
2022-08-18 17:39:36 +01:00
Thomas Hunter
a9f1946a0a
[ACS-3255] Add basic dialog for create / update rule (#2568)
* [ACS-3255] Add basic dialog for create / update rule

* Remove test data

* Fix import

* Fix linting
2022-07-15 16:37:41 +01:00