File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 5
5
<v-icon >mdi-github</v-icon >
6
6
</v-btn >
7
7
8
- <v-toolbar-title >Copilot Metrics Viewer | {{ capitalizedItemName }} : {{ gitHubOrgName }}</v-toolbar-title >
8
+ <v-toolbar-title class = " toolbar-title " >Copilot Metrics Viewer | {{ capitalizedItemName }} : {{ dispalyedViewName }}</v-toolbar-title >
9
9
<h2 class =" error-message" > {{ mockedDataMessage }} </h2 >
10
10
<v-spacer ></v-spacer >
11
11
@@ -79,9 +79,12 @@ export default defineComponent({
79
79
return ' invalid' ;
80
80
}
81
81
},
82
- capitalizedItemName() {
82
+ capitalizedItemName(): string {
83
83
return this .itemName .charAt (0 ).toUpperCase () + this .itemName .slice (1 );
84
84
},
85
+ dispalyedViewName(): string {
86
+ return this .capitalizedItemName === ' Enterprise' ? process .env .VUE_APP_GITHUB_ENT : process .env .VUE_APP_GITHUB_ORG ;
87
+ },
85
88
isScopeOrganization() {
86
89
return process .env .VUE_APP_SCOPE === ' organization' ;
87
90
},
@@ -100,7 +103,13 @@ export default defineComponent({
100
103
this .tabItems .unshift (this .itemName );
101
104
}
102
105
if (process .env .VUE_APP_SCOPE === ' organization' ) {
106
+ // get the last item in the array,which is 'api response'
107
+ // and add 'seat analysis' before it
108
+ let lastItem = this .tabItems .pop ();
103
109
this .tabItems .push (' seat analysis' );
110
+ if (lastItem ) {
111
+ this .tabItems .push (lastItem );
112
+ }
104
113
}
105
114
},
106
115
setup() {
@@ -177,6 +186,12 @@ export default defineComponent({
177
186
</script >
178
187
179
188
<style scoped>
189
+ .toolbar-title {
190
+ white-space : nowrap ;
191
+ overflow : visible ;
192
+ text-overflow : clip ;
193
+
194
+ }
180
195
.error-message {
181
196
color : red ;
182
197
}
You can’t perform that action at this time.
0 commit comments