[vue] Show current product name in the header bar
CodeChecker {{ packageVersion }}
</v-toolbar-title>
+ <v-chip
+ v-if="currentProductDisplayName"
+ class="mx-2"
+ outlined
+ >
+ {{ currentProductDisplayName }}
+ </v-chip>
+
<v-spacer />
<span
@@ -155,9 +163,16 @@ export default {
"authParams",
"isAuthenticated",
"announcement",
- "packageVersion"
+ "packageVersion",
+ "currentProduct"
]),
+ currentProductDisplayName() {
+ return this.currentProduct
+ ? window.atob(this.currentProduct.displayedName_b64)
+ : null;
+ },
+
menuItems() {
if (!this.$route.name) return [];
