Skip to content

Commit

Permalink
Merge pull request #426 from kubero-dev/feature/fix-edit-pipeline-hea…
Browse files Browse the repository at this point in the history
…dline

 Add breadcrumbs component to Pipeline form
  • Loading branch information
mms-gianni authored Oct 5, 2024
2 parents 3cedb08 + a788c47 commit 3d809e0
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions client/src/components/pipelines/form.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<template>
<v-form v-model="valid">
<v-container>
<Breadcrumbs :items="breadcrumbItems"></Breadcrumbs>
<v-row>
<v-col cols="12" sm="12" md="12" lg="12" xl="12">

Expand Down Expand Up @@ -224,6 +225,7 @@
<script lang="ts">
import axios from "axios";
import { defineComponent } from 'vue'
import Breadcrumbs from "../breadcrumbs.vue";
type Buildpack = {
name?: string,
Expand Down Expand Up @@ -257,7 +259,15 @@ export default defineComponent({
default: "new"
}
},
data: () => ({
data () {
return {
breadcrumbItems: [
{
title: 'dashboard.-',
disabled: false,
to: { name: 'Pipelines', params: {}}
},
],
gitops: false,
dockerimage: '',
deploymentstrategy: "git",
Expand Down Expand Up @@ -348,7 +358,7 @@ export default defineComponent({
// ((git|ssh|http(s)?)|(git@[\w\.]+))(:(//)?)([\w\.@\:/\-~]+)(\.git)(/)?
(v: any) => /((git|ssh|http(s)?)|(git@[\w.]+))(:(\/\/)?)([\w.@:/\-~]+)(\.git)(\/)?/.test(v) || 'Format "owner/repository"',
],
}),
}},
computed: {
showConnectButton() {
return this.gitrepoItems.includes(this.gitrepo) && this.repository_status.connected === false;
Expand All @@ -361,6 +371,9 @@ export default defineComponent({
this.loadRepository();
this.loadPipeline();
},
components: {
Breadcrumbs,
},
methods: {
updateBuildpack(buildpack: Buildpack) {
this.buildpack = buildpack;
Expand Down

0 comments on commit 3d809e0

Please sign in to comment.