Hide search filter button from unregistered users
This commit is contained in:
parent
2677c6f846
commit
e1dcfaa415
1 changed files with 5 additions and 1 deletions
|
@ -65,11 +65,15 @@ const Search = {
|
|||
allStatusesObject[status.id] && !allStatusesObject[status.id].deleted
|
||||
)
|
||||
},
|
||||
isLoggedIn () {
|
||||
return !!this.$store.state.users.currentUser
|
||||
},
|
||||
canSearchMediaPosts () {
|
||||
return this.$store.state.instance.searchTypeMediaEnabled === true
|
||||
},
|
||||
canSearchFollowing () {
|
||||
return this.$store.state.instance.searchOptionFollowingEnabled === true
|
||||
return this.isLoggedIn &&
|
||||
this.$store.state.instance.searchOptionFollowingEnabled === true
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
|
|
Loading…
Reference in a new issue