Skip to content

Commit 3d809e0

Browse files
authored
Merge pull request #426 from kubero-dev/feature/fix-edit-pipeline-headline
Add breadcrumbs component to Pipeline form
2 parents 3cedb08 + a788c47 commit 3d809e0

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

client/src/components/pipelines/form.vue

+15-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
22
<v-form v-model="valid">
33
<v-container>
4+
<Breadcrumbs :items="breadcrumbItems"></Breadcrumbs>
45
<v-row>
56
<v-col cols="12" sm="12" md="12" lg="12" xl="12">
67

@@ -224,6 +225,7 @@
224225
<script lang="ts">
225226
import axios from "axios";
226227
import { defineComponent } from 'vue'
228+
import Breadcrumbs from "../breadcrumbs.vue";
227229
228230
type Buildpack = {
229231
name?: string,
@@ -257,7 +259,15 @@ export default defineComponent({
257259
default: "new"
258260
}
259261
},
260-
data: () => ({
262+
data () {
263+
return {
264+
breadcrumbItems: [
265+
{
266+
title: 'dashboard.-',
267+
disabled: false,
268+
to: { name: 'Pipelines', params: {}}
269+
},
270+
],
261271
gitops: false,
262272
dockerimage: '',
263273
deploymentstrategy: "git",
@@ -348,7 +358,7 @@ export default defineComponent({
348358
// ((git|ssh|http(s)?)|(git@[\w\.]+))(:(//)?)([\w\.@\:/\-~]+)(\.git)(/)?
349359
(v: any) => /((git|ssh|http(s)?)|(git@[\w.]+))(:(\/\/)?)([\w.@:/\-~]+)(\.git)(\/)?/.test(v) || 'Format "owner/repository"',
350360
],
351-
}),
361+
}},
352362
computed: {
353363
showConnectButton() {
354364
return this.gitrepoItems.includes(this.gitrepo) && this.repository_status.connected === false;
@@ -361,6 +371,9 @@ export default defineComponent({
361371
this.loadRepository();
362372
this.loadPipeline();
363373
},
374+
components: {
375+
Breadcrumbs,
376+
},
364377
methods: {
365378
updateBuildpack(buildpack: Buildpack) {
366379
this.buildpack = buildpack;

0 commit comments

Comments
 (0)