diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-15 00:10:22 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-15 00:10:22 +0300 |
commit | 5b829393a732143e31e2f9a62b6ca2cfb7ebb147 (patch) | |
tree | 85260ce9fd49ea62df0cea5b750f8c0db1b5a082 /app/assets/javascripts/pipeline_editor | |
parent | f69bc1dab50e86440bb4ffdc507ca5efd94bf459 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/pipeline_editor')
-rw-r--r-- | app/assets/javascripts/pipeline_editor/pipeline_editor_app.vue | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/pipeline_editor/pipeline_editor_app.vue b/app/assets/javascripts/pipeline_editor/pipeline_editor_app.vue index d900cfcdf2b..c16c29f3222 100644 --- a/app/assets/javascripts/pipeline_editor/pipeline_editor_app.vue +++ b/app/assets/javascripts/pipeline_editor/pipeline_editor_app.vue @@ -152,6 +152,9 @@ export default { update(data) { return data.project?.ciTemplate?.content || ''; }, + result({ data }) { + this.updateCiConfig(data.project?.ciTemplate?.content || ''); + }, error() { this.reportFailure(LOAD_FAILURE_UNKNOWN); }, @@ -170,9 +173,6 @@ export default { isEmpty() { return this.currentCiFileContent === ''; }, - templateOrCurrentContent() { - return this.isNewCiConfigFile ? this.starterTemplate : this.currentCiFileContent; - }, }, i18n: { tabEdit: s__('Pipelines|Edit'), @@ -280,7 +280,7 @@ export default { /> <pipeline-editor-home :ci-config-data="ciConfigData" - :ci-file-content="templateOrCurrentContent" + :ci-file-content="currentCiFileContent" :is-new-ci-config-file="isNewCiConfigFile" @commit="updateOnCommit" @resetContent="resetContent" |