make Importer component reusable

This commit is contained in:
taehoon 2019-03-30 05:10:57 -04:00
parent 18bb209ace
commit 6d0e98a1c2
5 changed files with 50 additions and 17 deletions

View file

@ -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
*/