Skip to content

Commit

Permalink
Merge pull request #408 from h3poteto/iss-406
Browse files Browse the repository at this point in the history
closes #406 Reload side menu after create a list
  • Loading branch information
h3poteto authored Jun 19, 2018
2 parents 252283c + 5cd56b2 commit 34c6316
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export default {
} finally {
this.creating = false
}
await this.$store.dispatch('TimelineSpace/SideMenu/fetchLists')
},
edit (list) {
return this.$router.push(`/${this.id()}/lists/${list.id}/edit`)
Expand Down
3 changes: 2 additions & 1 deletion src/renderer/store/TimelineSpace/SideMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ const SideMenu = {
}
},
actions: {
fetchLists ({ commit }, account) {
fetchLists ({ commit, rootState }, account = null) {
if (account === null) account = rootState.TimelineSpace.account
const client = new Mastodon(
account.accessToken,
account.baseURL + '/api/v1'
Expand Down

0 comments on commit 34c6316

Please sign in to comment.