@@ -36,6 +36,7 @@ import {
3636 DefinitionStore ,
3737 DefinitionSubscriptions ,
3838 DefinitionType ,
39+ generateLifeCycleMatrix ,
3940 NamedGenerable ,
4041} from './DefinitionStore' ;
4142
@@ -167,11 +168,11 @@ export type StoreActions = AllDefinitionActions & {
167168 updateConnecting : Action <
168169 StoreModel ,
169170 | {
170- ref ?: MutableRefObject < any > ;
171- id : SetConnectionId ;
172- pos ?: XYPosition ;
173- name ?: string ;
174- }
171+ ref ?: MutableRefObject < any > ;
172+ id : SetConnectionId ;
173+ pos ?: XYPosition ;
174+ name ?: string ;
175+ }
175176 | undefined
176177 > ;
177178
@@ -200,7 +201,7 @@ export type StoreActions = AllDefinitionActions & {
200201 triggerToast : Action < StoreModel , ToastModel | undefined | void > ;
201202 triggerConfirmation : Action < StoreModel , ConfirmationModalModel | undefined > ;
202203 triggerConfigRefresh : ThunkOn < StoreActions , void > ;
203-
204+
204205 updateTooltip : Action < StoreModel , InfoToolTip | undefined > ;
205206} ;
206207
@@ -257,12 +258,12 @@ const Actions: StoreActions = {
257258 payload . origin && root
258259 ? root
259260 : {
260- ...curNav ,
261- props : {
262- ...curNav . props ,
263- values : payload . values ,
261+ ...curNav ,
262+ props : {
263+ ...curNav . props ,
264+ values : payload . values ,
265+ } ,
264266 } ,
265- } ,
266267 } ;
267268 } ) ,
268269
@@ -694,8 +695,8 @@ const Actions: StoreActions = {
694695 const parameterList =
695696 pipelineParameters . length > 0
696697 ? new parameters . CustomParametersList < PipelineParameterLiteral > (
697- pipelineParameters ,
698- )
698+ pipelineParameters ,
699+ )
699700 : undefined ;
700701
701702 const config = new Config (
@@ -723,12 +724,19 @@ const Actions: StoreActions = {
723724 state . toast = payload ?? undefined ;
724725 } ) ,
725726 // this is just to trigger the set toast action
726- triggerToast : action ( ( _ , __ ) => { } ) ,
727+ triggerToast : action ( ( _ , __ ) => { } ) ,
727728 triggerConfirmation : action ( ( state , payload ) => {
728729 state . confirm = payload ;
729730 } ) ,
730731 triggerConfigRefresh : thunkOn (
731- ( actions ) => actions . importOrb ,
732+ ( actions ) => [
733+ actions . importOrb ,
734+ ...generateLifeCycleMatrix ( actions ) ,
735+ actions . addWorkflowElement ,
736+ actions . setWorkflowElements ,
737+ actions . removeWorkflowElement ,
738+ actions . updateWorkflowElement ,
739+ ] ,
732740 ( actions ) => {
733741 actions . generateConfig ( ) ;
734742 } ,
0 commit comments