forked from AkkomaGang/admin-fe
Merge pull request 'fix loading of user statuses' (#7) from user-status-loading into develop
Reviewed-on: AkkomaGang/admin-fe#7
This commit is contained in:
commit
a13ec695f7
2 changed files with 2 additions and 1 deletions
|
@ -182,6 +182,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
capitalizeFirstLetter(str) {
|
capitalizeFirstLetter(str) {
|
||||||
|
if (!str) return ''
|
||||||
return str.charAt(0).toUpperCase() + str.slice(1)
|
return str.charAt(0).toUpperCase() + str.slice(1)
|
||||||
},
|
},
|
||||||
changeStatus(statusId, isSensitive, visibility) {
|
changeStatus(statusId, isSensitive, visibility) {
|
||||||
|
|
|
@ -39,7 +39,7 @@ const userProfile = {
|
||||||
commit('SET_STATUSES_LOADING', true)
|
commit('SET_STATUSES_LOADING', true)
|
||||||
|
|
||||||
fetchUserStatuses(userId, getters.authHost, godmode, getters.token)
|
fetchUserStatuses(userId, getters.authHost, godmode, getters.token)
|
||||||
.then(statuses => dispatch('SetStatuses', statuses.data))
|
.then(statuses => dispatch('SetStatuses', statuses.data.activities))
|
||||||
|
|
||||||
commit('SET_STATUSES_LOADING', false)
|
commit('SET_STATUSES_LOADING', false)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue