Skip to content

Commit

Permalink
Merge branch 'main' of github.com:kubero-dev/kubero
Browse files Browse the repository at this point in the history
  • Loading branch information
mms-gianni committed Oct 4, 2023
2 parents 4a378e0 + 7b6675d commit 40eec3a
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions client/src/components/pipelines/new.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
<v-switch
v-model="phase.enabled"
:label="phase.name"
:disabled="phase.name == 'review' && repository_status.connected === false"
:disabled="phase.name == 'review' && (repository_status.connected === false || gitops === false)"
></v-switch>
</v-col>
<v-col
Expand Down Expand Up @@ -466,6 +466,14 @@ export default {
this.newPipeline = false;
const p = response.data;
if (p.git.provider === '') {
this.gitops = false;
this.repository_status.connected = false
} else {
this.gitops = true;
this.repository_status.connected = true
}
this.resourceVersion = p.resourceVersion;
this.pipelineName = p.name;
this.domain = p.domain;
Expand Down Expand Up @@ -506,7 +514,7 @@ export default {
reviewapps: this.reviewapps,
git: this.git,
dockerimage: '',
deploymentstrategy: "git",
deploymentstrategy: "git", // DEPRECATED
buildpack: this.buildpack,
})
.then(response => {
Expand All @@ -528,7 +536,7 @@ export default {
reviewapps: this.reviewapps,
git: this.git,
dockerimage: '',
deploymentstrategy: "git",
deploymentstrategy: "git", // DEPRECATED
buildpack: this.buildpack,
})
.then(response => {
Expand Down

0 comments on commit 40eec3a

Please sign in to comment.