chore: Refactor shouldShowInboxes function name (#2065)
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user