diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-10-27 12:34:21 -0400 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-10-27 12:46:31 -0400 |
commit | 019bf6a7fed85138a6a3be6ef70fbb994be49abe (patch) | |
tree | 36868a7c0b8efb6a530d15e5aaab2f0188a9e220 /web/react/utils | |
parent | 61da22ea32a71015191e94665171e9703bd39211 (diff) | |
download | chat-019bf6a7fed85138a6a3be6ef70fbb994be49abe.tar.gz chat-019bf6a7fed85138a6a3be6ef70fbb994be49abe.tar.bz2 chat-019bf6a7fed85138a6a3be6ef70fbb994be49abe.zip |
Added ability to see/edit channel purpose in the client
Diffstat (limited to 'web/react/utils')
-rw-r--r-- | web/react/utils/client.jsx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx index 6fe373c50..8b37b995f 100644 --- a/web/react/utils/client.jsx +++ b/web/react/utils/client.jsx @@ -592,6 +592,23 @@ export function updateChannelHeader(data, success, error) { track('api', 'api_channels_header'); } +export function updateChannelPurpose(data, success, error) { + $.ajax({ + url: '/api/v1/channels/update_purpose', + dataType: 'json', + contentType: 'application/json', + type: 'POST', + data: JSON.stringify(data), + success, + error: function onError(xhr, status, err) { + var e = handleError('updateChannelPurpose', xhr, status, err); + error(e); + } + }); + + track('api', 'api_channels_purpose'); +} + export function updateNotifyProps(data, success, error) { $.ajax({ url: '/api/v1/channels/update_notify_props', |