Skip to content

Commit

Permalink
fix: hide sidebar when is not necessary
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos authored and backportbot-libresign[bot] committed Jan 28, 2025
1 parent ecde8c2 commit 64343f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Components/LeftSidebar/LeftSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 64343f3

Please sign in to comment.