mirror of
https://github.com/zulip/zulip.git
synced 2025-10-26 01:24:02 +00:00
channel-folders: Add UI to create new channel folder.
This commit adds a button besides the folder dropdowin in stream settings UI which can be used to create a new folder.
This commit is contained in:
@@ -9,6 +9,7 @@ import * as blueslip from "./blueslip.ts";
|
||||
import * as bot_data from "./bot_data.ts";
|
||||
import * as browser_history from "./browser_history.ts";
|
||||
import {buddy_list} from "./buddy_list.ts";
|
||||
import * as channel_folders from "./channel_folders.ts";
|
||||
import * as compose_call from "./compose_call.ts";
|
||||
import * as compose_call_ui from "./compose_call_ui.ts";
|
||||
import * as compose_closed_ui from "./compose_closed_ui.ts";
|
||||
@@ -113,6 +114,18 @@ export function dispatch_normal_event(event) {
|
||||
attachments_ui.update_attachments(event);
|
||||
break;
|
||||
|
||||
case "channel_folder":
|
||||
switch (event.op) {
|
||||
case "add": {
|
||||
channel_folders.add(event.channel_folder);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
blueslip.error("Unexpected event type channel_folder/" + event.op);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case "custom_profile_fields":
|
||||
realm.custom_profile_fields = event.fields;
|
||||
settings_profile_fields.populate_profile_fields(realm.custom_profile_fields);
|
||||
|
||||
Reference in New Issue
Block a user