summaryrefslogtreecommitdiffstats
path: root/web/react/utils/client.jsx
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-10-28 14:44:02 -0700
committerCorey Hulen <corey@hulen.com>2015-10-28 14:44:02 -0700
commit89f67cd11dbb71d42a8809976715d6df86d46c95 (patch)
tree3e3c50d16a6dea22f5270ab61255c975e3eb6147 /web/react/utils/client.jsx
parent9312272234c9bb41741ac174fb4b19c73426dce0 (diff)
parent019bf6a7fed85138a6a3be6ef70fbb994be49abe (diff)
downloadchat-89f67cd11dbb71d42a8809976715d6df86d46c95.tar.gz
chat-89f67cd11dbb71d42a8809976715d6df86d46c95.tar.bz2
chat-89f67cd11dbb71d42a8809976715d6df86d46c95.zip
Merge pull request #1199 from hmhealey/plt600
PLT-600 Renamed channel description to channel header and added channel purpose field
Diffstat (limited to 'web/react/utils/client.jsx')
-rw-r--r--web/react/utils/client.jsx25
1 files changed, 21 insertions, 4 deletions
diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx
index bf117b3b3..aeb39d8a8 100644
--- a/web/react/utils/client.jsx
+++ b/web/react/utils/client.jsx
@@ -589,21 +589,38 @@ export function updateChannel(channel, success, error) {
track('api', 'api_channels_update');
}
-export function updateChannelDesc(data, success, error) {
+export function updateChannelHeader(data, success, error) {
$.ajax({
- url: '/api/v1/channels/update_desc',
+ url: '/api/v1/channels/update_header',
dataType: 'json',
contentType: 'application/json',
type: 'POST',
data: JSON.stringify(data),
success,
error: function onError(xhr, status, err) {
- var e = handleError('updateChannelDesc', xhr, status, err);
+ var e = handleError('updateChannelHeader', xhr, status, err);
error(e);
}
});
- track('api', 'api_channels_desc');
+ 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) {