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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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