This commit is contained in:
tsukada-ecsec 2018-08-22 15:15:15 +09:00
parent 54166c3ad3
commit 0647c1bb72
1 changed files with 4 additions and 4 deletions

View File

@ -91,20 +91,20 @@ const WhoToFollowPanel = {
url = url.replace(/{{user}}/g, encodeURIComponent(user))
return url
},
showWhoToFollowPanel () {
return this.$store.state.config.showWhoToFollowPanel
suggestionsEnabled () {
return this.$store.state.config.suggestionsEnabled
}
},
watch: {
user: function (user, oldUser) {
if (this.showWhoToFollowPanel) {
if (this.suggestionsEnabled) {
getWhoToFollow(this)
}
}
},
mounted:
function () {
if (this.showWhoToFollowPanel) {
if (this.suggestionsEnabled) {
getWhoToFollow(this)
}
}