mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[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
This commit is contained in:
@@ -91,7 +91,12 @@ export const dummyRules: Rule[] = [
|
||||
errorScript: '',
|
||||
isShared: false,
|
||||
triggers: ['inbound'],
|
||||
conditions: null,
|
||||
conditions: {
|
||||
inverted: false,
|
||||
booleanMode: 'and',
|
||||
simpleConditions: [],
|
||||
compositeConditions: []
|
||||
},
|
||||
actions: [
|
||||
{
|
||||
actionDefinitionId: 'copy',
|
||||
@@ -113,7 +118,12 @@ export const dummyRules: Rule[] = [
|
||||
errorScript: '',
|
||||
isShared: false,
|
||||
triggers: ['inbound'],
|
||||
conditions: null,
|
||||
conditions: {
|
||||
inverted: false,
|
||||
booleanMode: 'and',
|
||||
simpleConditions: [],
|
||||
compositeConditions: []
|
||||
},
|
||||
actions: [
|
||||
{
|
||||
actionDefinitionId: 'move',
|
||||
|
Reference in New Issue
Block a user