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