summaryrefslogtreecommitdiffstats
path: root/web/react/utils
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-09-23 11:38:08 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-09-30 09:59:58 -0400
commit7c319f052441c01f7c0ffd744a50b671c785591a (patch)
tree5c36d84eedd4b54801fbccd4419734eb0486f8d8 /web/react/utils
parent4bc625e8d10ab7735b76814fe9bbf3fb9144d4e1 (diff)
downloadchat-7c319f052441c01f7c0ffd744a50b671c785591a.tar.gz
chat-7c319f052441c01f7c0ffd744a50b671c785591a.tar.bz2
chat-7c319f052441c01f7c0ffd744a50b671c785591a.zip
Removed UI for quiet mode and added UI to set when a channel will be marked unread in the sidebar
Diffstat (limited to 'web/react/utils')
-rw-r--r--web/react/utils/client.jsx15
1 files changed, 15 insertions, 0 deletions
diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx
index 715e26197..ce831be0d 100644
--- a/web/react/utils/client.jsx
+++ b/web/react/utils/client.jsx
@@ -583,6 +583,21 @@ export function updateNotifyLevel(data, success, error) {
});
}
+export function updateMarkUnreadLevel(data, success, error) {
+ $.ajax({
+ url: '/api/v1/channels/update_mark_unread_level',
+ dataType: 'json',
+ contentType: 'application/json',
+ type: 'POST',
+ data: JSON.stringify(data),
+ success,
+ error: function onError(xhr, status, err) {
+ var e = handleError('updateMarkUnreadLevel', xhr, status, err);
+ error(e);
+ }
+ });
+}
+
export function joinChannel(id, success, error) {
$.ajax({
url: '/api/v1/channels/' + id + '/join',