Skip to content

Commit 3cf8318

Browse files
authored
Merge pull request #207 from kubero-dev/feature/improve-navigation-breadkrumb
improve Navigation
2 parents 3e10e50 + 1e1e0df commit 3cf8318

File tree

3 files changed

+25
-35
lines changed

3 files changed

+25
-35
lines changed

client/src/components/apps/detail.vue

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
<template>
22
<v-container>
33
<breadcrumbs :items="breadcrumbItems"></breadcrumbs>
4-
<v-tabs v-model="tab" class="background">
5-
<v-tab class="background">Logs</v-tab>
6-
<v-tab class="background">Events</v-tab>
7-
<v-tab class="background">Vulnerabilities</v-tab>
8-
<v-spacer class="background"></v-spacer>
9-
</v-tabs>
104

5+
<v-container class="d-flex justify-space-between align-center mb-2">
6+
<v-tabs v-model="tab" class="background">
7+
<v-tab class="background">Logs</v-tab>
8+
<v-tab class="background">Events</v-tab>
9+
<v-tab class="background">Vulnerabilities</v-tab>
10+
<v-spacer class="background"></v-spacer>
11+
</v-tabs>
12+
<v-btn
13+
elevation="2"
14+
color="primary"
15+
:href="`#/pipeline/${this.pipeline}/${this.phase}/${this.app}`"
16+
>Edit App
17+
</v-btn>
18+
</v-container>
19+
1120
<v-tabs-items v-model="tab">
1221
<v-tab-item transition="false" class="background">
1322
<logs :pipeline="pipeline" :phase="phase" :app="app"/>
@@ -47,14 +56,7 @@ export default {
4756
text: 'APP:'+this.app,
4857
disabled: true,
4958
href: `#/pipeline/${this.pipeline}/${this.phase}/${this.app}/detail`,
50-
},
51-
{
52-
text: "EDIT",
53-
disabled: false,
54-
//http://localhost:2000/#/pipeline/customcommand/production/noproc
55-
href: `#/pipeline/${this.pipeline}/${this.phase}/${this.app}`,
56-
icon: "mdi-pencil-box-outline",
57-
},
59+
}
5860
],
5961
}
6062
},

client/src/components/apps/logstab.vue

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
11
<template>
22
<v-container>
3-
<v-row class="justify-space-between">
3+
<v-row>
44
<v-col cols="6" sm="6" md="6" lg="6" xl="6">
55
<h1>
66
Logs for {{ this.app }}
7-
8-
<v-btn
7+
</h1>
8+
</v-col>
9+
<v-col cols="6" sm="6" md="6" lg="6" xl="6" class="d-flex justify-end">
10+
<v-btn
911
class="ma-2"
1012
@click="openInWindow"
11-
>
12-
Open Logs
13-
<v-icon
14-
right
15-
dark
16-
>
17-
mdi-open-in-new
18-
</v-icon>
19-
</v-btn>
20-
</h1>
13+
>Open Logs
14+
<v-icon right dark >mdi-open-in-new</v-icon>
15+
</v-btn>
2116
<p></p>
2217
</v-col>
2318
</v-row>

client/src/components/apps/new.vue

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -806,14 +806,7 @@ export default {
806806
text: 'APP:'+this.app,
807807
disabled: false,
808808
href: `#/pipeline/${this.pipeline}/${this.phase}/${this.app}/detail`,
809-
},
810-
{
811-
text: 'EDIT',
812-
disabled: true,
813-
//http://localhost:2000/#/pipeline/customcommand/production/noproc
814-
href: `#/pipeline/${this.pipeline}/${this.phase}/${this.app}`,
815-
icon: "mdi-pencil-box-outline",
816-
},
809+
}
817810
],
818811
advanced: false,
819812
panel: [0],

0 commit comments

Comments
 (0)