refactor: don't make API calls directly

This commit is contained in:
Sol Fisher Romanoff 2022-06-18 16:04:18 +03:00
parent 9217ca8476
commit a6136f6cb2
No known key found for this signature in database
GPG key ID: 9D3F2B64F2341B62
8 changed files with 115 additions and 47 deletions

View file

@ -13,8 +13,7 @@ const api = {
socket: null,
mastoUserSocket: null,
mastoUserSocketStatus: null,
followRequests: [],
lists: []
followRequests: []
},
mutations: {
setBackendInteractor (state, backendInteractor) {
@ -36,9 +35,6 @@ const api = {
setFollowRequests (state, value) {
state.followRequests = value
},
setLists (state, value) {
state.lists = value
},
setMastoUserSocketStatus (state, value) {
state.mastoUserSocketStatus = value
},