diff options
author | =Corey Hulen <corey@hulen.com> | 2015-10-22 18:04:06 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-10-22 18:04:06 -0700 |
commit | ae5d1898037be4f59bf6517ad76b13cc16f595ce (patch) | |
tree | 17c021c2e2a6d785ac3618b6c302742e00978207 /web/react/utils/client.jsx | |
parent | 649f42e3fc706f8fa829276bcdb825381bc703f2 (diff) | |
download | chat-ae5d1898037be4f59bf6517ad76b13cc16f595ce.tar.gz chat-ae5d1898037be4f59bf6517ad76b13cc16f595ce.tar.bz2 chat-ae5d1898037be4f59bf6517ad76b13cc16f595ce.zip |
Adding analytics tab
Diffstat (limited to 'web/react/utils/client.jsx')
-rw-r--r-- | web/react/utils/client.jsx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx index f92633439..eca4f4b3e 100644 --- a/web/react/utils/client.jsx +++ b/web/react/utils/client.jsx @@ -327,6 +327,20 @@ export function getConfig(success, error) { }); } +export function getAnalytics(teamId, name, success, error) { + $.ajax({ + url: '/api/v1/admin/analytics/' + teamId + '/' + name, + dataType: 'json', + contentType: 'application/json', + type: 'GET', + success, + error: function onError(xhr, status, err) { + var e = handleError('getAnalytics', xhr, status, err); + error(e); + } + }); +} + export function saveConfig(config, success, error) { $.ajax({ url: '/api/v1/admin/save_config', |