Made ChannelInviteModal pull all channel members before rendering

Этот коммит содержится в:
hmhealey
2016-01-07 10:25:56 -05:00
родитель 0e7a149982
Коммит 357063044b
3 изменённых файлов: 36 добавлений и 11 удалений

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

@@ -824,10 +824,17 @@ export function getChannelCounts(success, error) {
});
}
export function getChannelExtraInfo(id, success, error) {
export function getChannelExtraInfo(id, memberLimit, success, error) {
let url = '/api/v1/channels/' + id + '/extra_info';
if (memberLimit) {
url += '/' + memberLimit;
}
$.ajax({
url: '/api/v1/channels/' + id + '/extra_info',
url,
dataType: 'json',
contentType: 'application/json',
type: 'GET',
success,
error: function onError(xhr, status, err) {