File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -285,6 +285,10 @@ export default {
285
285
},
286
286
},
287
287
288
+ created () {
289
+ this .refreshItem ();
290
+ },
291
+
288
292
methods: {
289
293
290
294
setSkipTags (tags ) {
@@ -342,7 +346,7 @@ export default {
342
346
this .item .secret = JSON .stringify (this .editedSecretEnvironment );
343
347
},
344
348
345
- async afterLoadData () {
349
+ refreshItem () {
346
350
this .assignItem (this .sourceTask );
347
351
348
352
this .item .template_id = this .template .id ;
@@ -351,6 +355,16 @@ export default {
351
355
this .item .params = {};
352
356
}
353
357
358
+ [' tags' , ' limit' , ' skip_tags' ].forEach ((param ) => {
359
+ if (! this .item .params [param]) {
360
+ this .item .params [param] = (this .template .task_params || {})[param];
361
+ }
362
+ });
363
+ },
364
+
365
+ async afterLoadData () {
366
+ this .refreshItem ();
367
+
354
368
[
355
369
this .buildTasks ,
356
370
this .inventory ,
You can’t perform that action at this time.
0 commit comments