File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
client/src/components/pipelines Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 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 => {
You can’t perform that action at this time.
0 commit comments