Make peer list filterable

This commit is contained in:
eugenijm 2020-01-21 07:21:37 +03:00
parent 9206538f61
commit 629cdfb6ca
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)
}
}