Merge branch 'filterable-peers' into 'develop'

Make instance list searchable

See merge request pleroma/admin-fe!78
This commit is contained in:
feld 2020-01-21 19:36:50 +00:00
commit 1448ef4a2d
2 changed files with 4 additions and 2 deletions

View file

@ -17,6 +17,8 @@ const getters = {
errorLogs: state => state.errorLog.logs,
users: state => state.users.fetchedUsers,
authHost: state => state.user.authHost,
settings: state => state.settings
settings: state => state.settings,
instances: state => state.peers.fetchedPeers,
statuses: state => state.status.fetchedStatuses
}
export default getters

View file

@ -19,7 +19,7 @@ const peers = {
async FetchPeers({ commit, getters }) {
const peers = await fetchPeers(getters.authHost, getters.token)
commit('SET_PEERS', peers.data)
commit('SET_PEERS', [...peers.data].sort())
commit('SET_LOADING', false)
}
}