Skip to content
Snippets Groups Projects
Unverified Commit 5c632c34 authored by Christoph Wurst's avatar Christoph Wurst Committed by GitHub
Browse files

Merge pull request #1631 from nextcloud/fix/new-account-fetch-folders

Fetch the folders of a newly created account
parents bad4961a 8895bc53
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,18 @@ export default {
return createAccount(config).then(account => {
console.debug('account created', account)
commit('addAccount', account)
return account
fetchAllFolders(account.id)
.then(folders =>
folders.forEach(folder => {
commit('addFolder', {
account,
folder,
})
})
)
.then(() => console.info("new account's folders fetched"))
.then(() => account)
})
},
updateAccount({commit}, config) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment