Skip to content

Commit

Permalink
fix: replace onActionDone trigger by onActionSuccess and onActionError
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Dekker committed Jan 19, 2024
1 parent 89886dd commit 0e9cc91
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions src/prefabs/backOffice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,16 @@ const interactions: PrefabInteraction[] = [
{
type: InteractionType.Custom,
name: 'Enable',
sourceEvent: 'onActionDone',
sourceEvent: 'onActionSuccess',
ref: {
targetComponentId: '#createSubmitButton',
sourceComponentId: '#createForm',
},
},
{
type: InteractionType.Custom,
name: 'Enable',
sourceEvent: 'onActionError',
ref: {
targetComponentId: '#createSubmitButton',
sourceComponentId: '#createForm',
Expand All @@ -571,7 +580,16 @@ const interactions: PrefabInteraction[] = [
{
type: InteractionType.Custom,
name: 'Enable',
sourceEvent: 'onActionDone',
sourceEvent: 'onActionSuccess',
ref: {
targetComponentId: '#editSubmitButton',
sourceComponentId: '#updateForm',
},
},
{
type: InteractionType.Custom,
name: 'Enable',
sourceEvent: 'onActionError',
ref: {
targetComponentId: '#editSubmitButton',
sourceComponentId: '#updateForm',
Expand Down

0 comments on commit 0e9cc91

Please sign in to comment.