chore: Refactor shouldShowInboxes function name (#2065)

This commit is contained in:
Sivin Varghese
2021-04-08 11:44:23 +05:30
committed by GitHub
parent cc3da031e2
commit 012502a2d1

View File

@@ -19,12 +19,12 @@
:menu-item="teamSection" :menu-item="teamSection"
/> />
<sidebar-item <sidebar-item
v-if="shouldShowInboxes" v-if="shouldShowSidebarItem"
:key="inboxSection.toState" :key="inboxSection.toState"
:menu-item="inboxSection" :menu-item="inboxSection"
/> />
<sidebar-item <sidebar-item
v-if="shouldShowInboxes" v-if="shouldShowSidebarItem"
:key="labelSection.toState" :key="labelSection.toState"
:menu-item="labelSection" :menu-item="labelSection"
/> />
@@ -128,11 +128,11 @@ export default {
currentRoute() { currentRoute() {
return this.$store.state.route.name; return this.$store.state.route.name;
}, },
shouldShowInboxes() { shouldShowSidebarItem() {
return this.sidemenuItems.common.routes.includes(this.currentRoute); return this.sidemenuItems.common.routes.includes(this.currentRoute);
}, },
shouldShowTeams() { shouldShowTeams() {
return this.shouldShowInboxes && this.teams.length; return this.shouldShowSidebarItem && this.teams.length;
}, },
inboxSection() { inboxSection() {
return { return {