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)) url = url.replace(/{{user}}/g, encodeURIComponent(user))
return url return url
}, },
showWhoToFollowPanel () { suggestionsEnabled () {
return this.$store.state.config.showWhoToFollowPanel return this.$store.state.config.suggestionsEnabled
} }
}, },
watch: { watch: {
user: function (user, oldUser) { user: function (user, oldUser) {
if (this.showWhoToFollowPanel) { if (this.suggestionsEnabled) {
getWhoToFollow(this) getWhoToFollow(this)
} }
} }
}, },
mounted: mounted:
function () { function () {
if (this.showWhoToFollowPanel) { if (this.suggestionsEnabled) {
getWhoToFollow(this) getWhoToFollow(this)
} }
} }