Skip to content

Commit 7b6675d

Browse files
authored
Merge pull request #217 from kubero-dev/fix/pipeline-connect-status
fix gitops switch in pipelines
2 parents ff7f093 + 45a77de commit 7b6675d

File tree

1 file changed

+11
-3
lines changed
  • client/src/components/pipelines

1 file changed

+11
-3
lines changed

client/src/components/pipelines/new.vue

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
<v-switch
154154
v-model="phase.enabled"
155155
:label="phase.name"
156-
:disabled="phase.name == 'review' && repository_status.connected === false"
156+
:disabled="phase.name == 'review' && (repository_status.connected === false || gitops === false)"
157157
></v-switch>
158158
</v-col>
159159
<v-col
@@ -466,6 +466,14 @@ export default {
466466
this.newPipeline = false;
467467
const p = response.data;
468468
469+
if (p.git.provider === '') {
470+
this.gitops = false;
471+
this.repository_status.connected = false
472+
} else {
473+
this.gitops = true;
474+
this.repository_status.connected = true
475+
}
476+
469477
this.resourceVersion = p.resourceVersion;
470478
this.pipelineName = p.name;
471479
this.domain = p.domain;
@@ -506,7 +514,7 @@ export default {
506514
reviewapps: this.reviewapps,
507515
git: this.git,
508516
dockerimage: '',
509-
deploymentstrategy: "git",
517+
deploymentstrategy: "git", // DEPRECATED
510518
buildpack: this.buildpack,
511519
})
512520
.then(response => {
@@ -528,7 +536,7 @@ export default {
528536
reviewapps: this.reviewapps,
529537
git: this.git,
530538
dockerimage: '',
531-
deploymentstrategy: "git",
539+
deploymentstrategy: "git", // DEPRECATED
532540
buildpack: this.buildpack,
533541
})
534542
.then(response => {

0 commit comments

Comments
 (0)