add “block import” feature

This commit is contained in:
taehoon 2019-03-30 07:27:53 -04:00
commit 0ab2f9dfa5
5 changed files with 32 additions and 0 deletions

View file

@ -242,6 +242,14 @@ const UserSettings = {
}
})
},
importBlocks (file) {
return this.$store.state.api.backendInteractor.importBlocks(file)
.then((status) => {
if (!status) {
throw new Error('failed')
}
})
},
/* This function takes an Array of Users
* and outputs a file with all the addresses for the user to download
*/