From 5b829393a732143e31e2f9a62b6ca2cfb7ebb147 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 14 Jun 2021 21:10:22 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- app/assets/javascripts/pipeline_editor/pipeline_editor_app.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/assets/javascripts/pipeline_editor') 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 { />