Skip to content

Commit bbc418c

Browse files
committed
fix(ui): load task data
1 parent 683906c commit bbc418c

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

web/src/components/TaskForm.vue

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,10 @@ export default {
285285
},
286286
},
287287
288+
created() {
289+
this.refreshItem();
290+
},
291+
288292
methods: {
289293
290294
setSkipTags(tags) {
@@ -342,7 +346,7 @@ export default {
342346
this.item.secret = JSON.stringify(this.editedSecretEnvironment);
343347
},
344348
345-
async afterLoadData() {
349+
refreshItem() {
346350
this.assignItem(this.sourceTask);
347351
348352
this.item.template_id = this.template.id;
@@ -351,6 +355,16 @@ export default {
351355
this.item.params = {};
352356
}
353357
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+
354368
[
355369
this.buildTasks,
356370
this.inventory,

0 commit comments

Comments
 (0)