Skip to content

Commit

Permalink
Item Details: hide undefined group type
Browse files Browse the repository at this point in the history
Signed-off-by: Jimmy Tanagra <[email protected]>
  • Loading branch information
jimtng committed Mar 5, 2024
1 parent 4af22ff commit d392e00
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<h2>{{ item.label }}</h2>
<!-- <h4 v-show="item.label">{{item.name}}</h4> -->
<h5 v-show="item.type">
<small>{{ item.type === 'Group' ? `${item.type} (${item.groupType})` : item.type }}</small>
<small>{{ itemTypeDisplay }}</small>
</h5>
</f7-subnavbar>
</f7-navbar>
Expand Down Expand Up @@ -178,6 +178,10 @@ export default {
return {
store: this.$store.getters.trackedItems
}
},
itemTypeDisplay () {
if (this.item.type !== 'Group' || !this.item.groupType) return this.item.type
return `${this.item.type} (${this.item.groupType})`
}
},
methods: {
Expand Down

0 comments on commit d392e00

Please sign in to comment.