mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-01-31 17:45:22 +01:00
refs #406 Reload side menu after create a list
This commit is contained in:
parent
252283c410
commit
5cd56b28df
@ -76,6 +76,7 @@ export default {
|
|||||||
} finally {
|
} finally {
|
||||||
this.creating = false
|
this.creating = false
|
||||||
}
|
}
|
||||||
|
await this.$store.dispatch('TimelineSpace/SideMenu/fetchLists')
|
||||||
},
|
},
|
||||||
edit (list) {
|
edit (list) {
|
||||||
return this.$router.push(`/${this.id()}/lists/${list.id}/edit`)
|
return this.$router.push(`/${this.id()}/lists/${list.id}/edit`)
|
||||||
|
@ -27,7 +27,8 @@ const SideMenu = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
fetchLists ({ commit }, account) {
|
fetchLists ({ commit, rootState }, account = null) {
|
||||||
|
if (account === null) account = rootState.TimelineSpace.account
|
||||||
const client = new Mastodon(
|
const client = new Mastodon(
|
||||||
account.accessToken,
|
account.accessToken,
|
||||||
account.baseURL + '/api/v1'
|
account.baseURL + '/api/v1'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user