Make peer list filterable
This commit is contained in:
parent
9206538f61
commit
629cdfb6ca
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue