make Importer component reusable
This commit is contained in:
parent
18bb209ace
commit
6d0e98a1c2
5 changed files with 50 additions and 17 deletions
|
@ -234,6 +234,14 @@ const UserSettings = {
|
|||
this.backgroundUploading = false
|
||||
})
|
||||
},
|
||||
importFollows (file) {
|
||||
return this.$store.state.api.backendInteractor.followImport(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