From bdcbaf6c2a332853008aa2b0c7231e161adfff95 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Tue, 28 Jan 2025 14:26:05 -0300 Subject: [PATCH] fix: hide sidebar when is not necessary Signed-off-by: Vitor Mattos --- src/Components/LeftSidebar/LeftSidebar.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Components/LeftSidebar/LeftSidebar.vue b/src/Components/LeftSidebar/LeftSidebar.vue index 8520ef87c6..ef825b355a 100644 --- a/src/Components/LeftSidebar/LeftSidebar.vue +++ b/src/Components/LeftSidebar/LeftSidebar.vue @@ -94,11 +94,13 @@ export default { showLeftSidebar() { if (this.$route.name === 'Incomplete' || this.$route.name === 'IncompleteExternal' + || !getCurrentUser() + || this.$route.path.startsWith('/p/') + || this.$route.path.startsWith('/validation/') // short validation url ) { return false } - return getCurrentUser() - || !this.$route.path.startsWith('/p/') + return true }, }, methods: {