add “block import” feature
This commit is contained in:
parent
6ea4154084
commit
0ab2f9dfa5
5 changed files with 32 additions and 0 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue