From 012502a2d1cba6c8f4225bf06f41d02450f541ad Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+sivin-git@users.noreply.github.com> Date: Thu, 8 Apr 2021 11:44:23 +0530 Subject: [PATCH] chore: Refactor shouldShowInboxes function name (#2065) --- app/javascript/dashboard/components/layout/Sidebar.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/javascript/dashboard/components/layout/Sidebar.vue b/app/javascript/dashboard/components/layout/Sidebar.vue index 0bb416456..509c34696 100644 --- a/app/javascript/dashboard/components/layout/Sidebar.vue +++ b/app/javascript/dashboard/components/layout/Sidebar.vue @@ -19,12 +19,12 @@ :menu-item="teamSection" /> @@ -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 {