mirror of https://github.com/zulip/zulip.git
stream_settings_components: Don't return result of ajax calls.
These weren't being used anywhere.
This commit is contained in:
parent
9455548b49
commit
aa0af2277a
|
@ -147,7 +147,7 @@ export function ajaxSubscribe(stream, color, $stream_row) {
|
|||
if ($stream_row !== undefined) {
|
||||
display_subscribe_toggle_spinner($stream_row);
|
||||
}
|
||||
return channel.post({
|
||||
channel.post({
|
||||
url: "/json/users/me/subscriptions",
|
||||
data: {subscriptions: JSON.stringify([{name: stream, color}])},
|
||||
success(_resp, _statusText, xhr) {
|
||||
|
@ -191,7 +191,7 @@ function ajaxUnsubscribe(sub, $stream_row) {
|
|||
if ($stream_row !== undefined) {
|
||||
display_subscribe_toggle_spinner($stream_row);
|
||||
}
|
||||
return channel.del({
|
||||
channel.del({
|
||||
url: "/json/users/me/subscriptions",
|
||||
data: {subscriptions: JSON.stringify([sub.name])},
|
||||
success() {
|
||||
|
|
Loading…
Reference in New Issue