diff options
author | Joram Wilander <jwawilander@gmail.com> | 2015-09-08 11:55:37 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2015-09-08 11:55:37 -0400 |
commit | 05eb81638dba882b289ee39a34c6bc75e9f0941d (patch) | |
tree | 981e19a87bd0e6543a180ac91c2ad8a12b838f5c /web/react/utils/client.jsx | |
parent | 1d692a0775b61886fd07147300ff70186554510c (diff) | |
parent | f0fd9a9e8b85544089246bde71b6d61ba90eeb0e (diff) | |
download | chat-05eb81638dba882b289ee39a34c6bc75e9f0941d.tar.gz chat-05eb81638dba882b289ee39a34c6bc75e9f0941d.tar.bz2 chat-05eb81638dba882b289ee39a34c6bc75e9f0941d.zip |
Merge pull request #602 from mattermost/mm-1409
MM-1409 Adding ability to export data from mattermost
Diffstat (limited to 'web/react/utils/client.jsx')
-rw-r--r-- | web/react/utils/client.jsx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx index 10f9c0b37..51fd16474 100644 --- a/web/react/utils/client.jsx +++ b/web/react/utils/client.jsx @@ -919,6 +919,19 @@ export function importSlack(fileData, success, error) { }); } +export function exportTeam(success, error) { + $.ajax({ + url: '/api/v1/teams/export_team', + type: 'GET', + dataType: 'json', + success: success, + error: function onError(xhr, status, err) { + var e = handleError('exportTeam', xhr, status, err); + error(e); + } + }); +} + export function getStatuses(success, error) { $.ajax({ url: '/api/v1/users/status', |