Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/pipeline_wizard/components/input_wrapper.vue')
-rw-r--r--app/assets/javascripts/pipeline_wizard/components/input_wrapper.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/assets/javascripts/pipeline_wizard/components/input_wrapper.vue b/app/assets/javascripts/pipeline_wizard/components/input_wrapper.vue
index 5efae2471e5..c9649b2f2f7 100644
--- a/app/assets/javascripts/pipeline_wizard/components/input_wrapper.vue
+++ b/app/assets/javascripts/pipeline_wizard/components/input_wrapper.vue
@@ -3,10 +3,12 @@ import { isNode, isDocument, isSeq, visit } from 'yaml';
import { capitalize } from 'lodash';
import TextWidget from '~/pipeline_wizard/components/widgets/text.vue';
import ListWidget from '~/pipeline_wizard/components/widgets/list.vue';
+import ChecklistWidget from '~/pipeline_wizard/components/widgets/checklist.vue';
const widgets = {
TextWidget,
ListWidget,
+ ChecklistWidget,
};
function isNullOrUndefined(v) {
@@ -30,8 +32,9 @@ export default {
},
target: {
type: String,
- required: true,
+ required: false,
validator: (v) => /^\$.*/g.test(v),
+ default: null,
},
widget: {
type: String,
@@ -48,6 +51,7 @@ export default {
},
computed: {
path() {
+ if (!this.target) return null;
let res;
visit(this.template, (seqKey, node, path) => {
if (node && node.value === this.target) {