fix inconsistencies within who_to_follow_panel
This commit is contained in:
parent
6fa993c122
commit
ed2393c970
|
@ -24,8 +24,8 @@ function showWhoToFollow (panel, reply) {
|
||||||
function getWhoToFollow (panel) {
|
function getWhoToFollow (panel) {
|
||||||
var credentials = panel.$store.state.users.currentUser.credentials
|
var credentials = panel.$store.state.users.currentUser.credentials
|
||||||
if (credentials) {
|
if (credentials) {
|
||||||
panel.usersToFollow.forEach((_, index) => {
|
panel.usersToFollow.forEach(toFollow => {
|
||||||
panel.usersToFollow[index].name = 'Loading...'
|
toFollow.name = 'Loading...'
|
||||||
})
|
})
|
||||||
apiService.suggestions({credentials: credentials})
|
apiService.suggestions({credentials: credentials})
|
||||||
.then((reply) => {
|
.then((reply) => {
|
||||||
|
@ -49,11 +49,11 @@ const WhoToFollowPanel = {
|
||||||
return this.$store.state.users.currentUser.screen_name
|
return this.$store.state.users.currentUser.screen_name
|
||||||
},
|
},
|
||||||
moreUrl: function () {
|
moreUrl: function () {
|
||||||
let host = window.location.hostname
|
const host = window.location.hostname
|
||||||
let user = this.user
|
const user = this.user
|
||||||
let suggestionsWeb = this.$store.state.instance.suggestionsWeb
|
const suggestionsWeb = this.$store.state.instance.suggestionsWeb
|
||||||
let url = suggestionsWeb.replace(/{{host}}/g, encodeURIComponent(host))
|
const url = suggestionsWeb.replace(/{{host}}/g, encodeURIComponent(host))
|
||||||
.replace(/{{user}}/g, encodeURIComponent(user))
|
.replace(/{{user}}/g, encodeURIComponent(user))
|
||||||
return url
|
return url
|
||||||
},
|
},
|
||||||
suggestionsEnabled () {
|
suggestionsEnabled () {
|
||||||
|
|
Loading…
Reference in New Issue