|
|
@ -61,7 +61,9 @@ export class ContentChangedTriggerComponent implements OnInit { |
|
|
const schema = this.schemas.find(s => s.id === triggerSchema.schemaId); |
|
|
const schema = this.schemas.find(s => s.id === triggerSchema.schemaId); |
|
|
|
|
|
|
|
|
if (schema) { |
|
|
if (schema) { |
|
|
schemas.push({ schema, condition: triggerSchema.condition }); |
|
|
const condition = triggerSchema.condition; |
|
|
|
|
|
|
|
|
|
|
|
schemas.push({ schema, condition }); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -85,6 +87,12 @@ export class ContentChangedTriggerComponent implements OnInit { |
|
|
this.updateSchemaToAdd(); |
|
|
this.updateSchemaToAdd(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public updateCondition(schema: SchemaDto, condition: string) { |
|
|
|
|
|
this.triggerSchemas = this.triggerSchemas.map(s => s.schema === schema ? { schema, condition } : s); |
|
|
|
|
|
|
|
|
|
|
|
this.updateValue(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public updateValue() { |
|
|
public updateValue() { |
|
|
const schemas = this.triggerSchemas.values.map(s => ({ schemaId: s.schema.id, condition: s.condition })); |
|
|
const schemas = this.triggerSchemas.values.map(s => ({ schemaId: s.schema.id, condition: s.condition })); |
|
|
|
|
|
|
|
|
|