diff options
Diffstat (limited to 'web/react/utils/client.jsx')
-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', |