Skip to content

Commit 817c1a5

Browse files
authored
Merge pull request #257 from kubero-dev/feature/improve-app-detail-navigation
Feature / Add navigation burger menu list
2 parents 77f80b3 + 9a13289 commit 817c1a5

File tree

1 file changed

+62
-6
lines changed

1 file changed

+62
-6
lines changed

client/src/components/apps/detail.vue

Lines changed: 62 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,49 @@
99
<v-tab class="background">Vulnerabilities</v-tab>
1010
<v-spacer class="background"></v-spacer>
1111
</v-tabs>
12-
<v-btn
13-
elevation="2"
12+
13+
14+
<v-menu offset-y>
15+
<template v-slot:activator="{ on, attrs }">
16+
<v-btn
1417
color="primary"
15-
:href="`#/pipeline/${this.pipeline}/${this.phase}/${this.app}`"
16-
>Edit App
17-
</v-btn>
18+
dark
19+
v-bind="attrs"
20+
v-on="on"
21+
>
22+
<v-icon color="white">mdi-menu-open</v-icon>
23+
Actions
24+
</v-btn>
25+
</template>
26+
<v-list>
27+
<v-list-item-group>
28+
<v-list-item
29+
@click="ActionEditApp">
30+
<v-list-item-icon>
31+
<v-icon small>mdi-pencil</v-icon>
32+
</v-list-item-icon>
33+
<v-list-item-content>
34+
<v-list-item-title>Edit App</v-list-item-title>
35+
</v-list-item-content>
36+
</v-list-item>
37+
<v-list-item
38+
@click="ActionOpenApp">
39+
<v-list-item-icon>
40+
<v-icon small>mdi-open-in-new</v-icon>
41+
</v-list-item-icon>
42+
<v-list-item-title>Open App</v-list-item-title>
43+
</v-list-item>
44+
<v-list-item
45+
disabled
46+
@click="ActionStartDownload">
47+
<v-list-item-icon>
48+
<v-icon small>mdi-download</v-icon>
49+
</v-list-item-icon>
50+
<v-list-item-title>Download Config</v-list-item-title>
51+
</v-list-item>
52+
</v-list-item-group>
53+
</v-list>
54+
</v-menu>
1855
</v-container>
1956

2057
<v-tabs-items v-model="tab">
@@ -92,6 +129,15 @@ export default {
92129
this.appData = response.data;
93130
});
94131
},
132+
ActionOpenApp() {
133+
window.open(`https://app.${this.appData.spec.domain}`, '_blank');
134+
},
135+
ActionEditApp() {
136+
this.$router.push(`/pipeline/${this.pipeline}/${this.phase}/${this.app}`);
137+
},
138+
ActionStartDownload() {
139+
console.log("ActionStartDownload");
140+
}
95141
},
96142
97143
components: {
@@ -115,4 +161,14 @@ export default {
115161
}
116162
},
117163
}
118-
</script>
164+
</script>
165+
166+
<style scoped>
167+
.v-list-item__icon:first-child {
168+
margin-right: 0px;
169+
margin: 10px
170+
}
171+
.v-list-item {
172+
min-height: 32px;
173+
}
174+
</style>

0 commit comments

Comments
 (0)