aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_settings/user_settings.js
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-03-30 05:10:57 -0400
committertaehoon <th.dev91@gmail.com>2019-04-27 08:31:06 -0400
commit6d0e98a1c2c81c587b89736dbd2ac43a8c540d54 (patch)
tree33f10f421c9f6fafad4fe29a54621020e09484ab /src/components/user_settings/user_settings.js
parent18bb209acefcdc332cba6708d9a0e163d0d04e90 (diff)
make Importer component reusable
Diffstat (limited to 'src/components/user_settings/user_settings.js')
-rw-r--r--src/components/user_settings/user_settings.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/components/user_settings/user_settings.js b/src/components/user_settings/user_settings.js
index a213650b..32e92dc4 100644
--- a/src/components/user_settings/user_settings.js
+++ b/src/components/user_settings/user_settings.js
@@ -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
*/