Added ability to see/edit channel purpose in the client

Этот коммит содержится в:
hmhealey
2015-10-27 12:34:21 -04:00
родитель 61da22ea32
Коммит 019bf6a7fe
8 изменённых файлов: 274 добавлений и 92 удалений

Просмотреть файл

@@ -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',