File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,6 +92,12 @@ Page.Workflows = class Workflows extends Page.Events {
9292 else if ( ! app . plugins . length ) return this . doFullPageError ( config . ui . errors . new_wf_no_plugins ) ;
9393 else plug_id = app . plugins [ 0 ] . id ;
9494
95+ var plug_params = { } ;
96+ var plugin = find_object ( app . plugins , { id : plug_id } ) || { } ;
97+ ( plugin . params || [ ] ) . forEach ( function ( param ) {
98+ plug_params [ param . id ] = ( typeof ( param . value ) == 'object' ) ? deep_copy_object ( param . value ) : param . value ;
99+ } ) ;
100+
95101 var target_ids = [ ] ;
96102 if ( app . config . new_event_template . targets && app . config . new_event_template . targets . length ) target_ids = [ ...app . config . new_event_template . targets ] ;
97103 else if ( find_object ( app . groups , { id : 'main' } ) ) target_ids = [ 'main' ] ;
@@ -102,7 +108,7 @@ Page.Workflows = class Workflows extends Page.Events {
102108 "id" : job_node_id ,
103109 "type" : "job" ,
104110 "data" : {
105- "params" : { } ,
111+ "params" : plug_params ,
106112 "targets" : target_ids ,
107113 "algo" : app . config . new_event_template . algo || "random" ,
108114 "label" : "" ,
You can’t perform that action at this time.
0 commit comments