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_editor/components/lint/ci_lint.vue')
-rw-r--r--app/assets/javascripts/pipeline_editor/components/lint/ci_lint.vue12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/assets/javascripts/pipeline_editor/components/lint/ci_lint.vue b/app/assets/javascripts/pipeline_editor/components/lint/ci_lint.vue
index b27ab9a39d3..f1cf5630fbf 100644
--- a/app/assets/javascripts/pipeline_editor/components/lint/ci_lint.vue
+++ b/app/assets/javascripts/pipeline_editor/components/lint/ci_lint.vue
@@ -1,6 +1,5 @@
<script>
import { flatten } from 'lodash';
-import { CI_CONFIG_STATUS_VALID } from '../../constants';
import CiLintResults from './ci_lint_results.vue';
export default {
@@ -13,15 +12,16 @@ export default {
},
},
props: {
+ isValid: {
+ type: Boolean,
+ required: true,
+ },
ciConfig: {
type: Object,
required: true,
},
},
computed: {
- isValid() {
- return this.ciConfig?.status === CI_CONFIG_STATUS_VALID;
- },
stages() {
return this.ciConfig?.stages || [];
},
@@ -45,9 +45,9 @@ export default {
<template>
<ci-lint-results
- :valid="isValid"
- :jobs="jobs"
:errors="ciConfig.errors"
+ :is-valid="isValid"
+ :jobs="jobs"
:lint-help-page-path="lintHelpPagePath"
/>
</template>