aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_settings/user_settings.js
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-03-30 07:27:53 -0400
committertaehoon <th.dev91@gmail.com>2019-04-27 08:31:06 -0400
commit0ab2f9dfa58c1f4caf01f083175a171d19272cda (patch)
tree17f5b113e394b9d81d4ecfccd16f8c9cad6fd6b0 /src/components/user_settings/user_settings.js
parent6ea4154084b288f6f67ccf9c10829013c3cbe892 (diff)
add “block import” feature
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 fa252e59..c4214744 100644
--- a/src/components/user_settings/user_settings.js
+++ b/src/components/user_settings/user_settings.js
@@ -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
*/