refactor: don't make API calls directly
This commit is contained in:
parent
9217ca8476
commit
a6136f6cb2
8 changed files with 115 additions and 47 deletions
|
@ -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
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue