mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 03:41:58 +00:00
stream_popover: Treat propagate_mode as optional.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
94e0f66409
commit
d2c465960d
@@ -420,7 +420,7 @@ export async function build_move_topic_to_stream_popover(
|
|||||||
current_stream_id: z.string(),
|
current_stream_id: z.string(),
|
||||||
new_topic_name: z.string().optional(),
|
new_topic_name: z.string().optional(),
|
||||||
old_topic_name: z.string(),
|
old_topic_name: z.string(),
|
||||||
propagate_mode: z.enum(["change_one", "change_later", "change_all"]),
|
propagate_mode: z.enum(["change_one", "change_later", "change_all"]).optional(),
|
||||||
send_notification_to_new_thread: z.literal("on").optional(),
|
send_notification_to_new_thread: z.literal("on").optional(),
|
||||||
send_notification_to_old_thread: z.literal("on").optional(),
|
send_notification_to_old_thread: z.literal("on").optional(),
|
||||||
});
|
});
|
||||||
@@ -489,6 +489,7 @@ export async function build_move_topic_to_stream_popover(
|
|||||||
if (message !== undefined) {
|
if (message !== undefined) {
|
||||||
// We already have the message_id here which means that modal is opened using
|
// We already have the message_id here which means that modal is opened using
|
||||||
// message popover.
|
// message popover.
|
||||||
|
assert(params.propagate_mode !== undefined);
|
||||||
propagate_mode = params.propagate_mode;
|
propagate_mode = params.propagate_mode;
|
||||||
const toast_params =
|
const toast_params =
|
||||||
propagate_mode === "change_one"
|
propagate_mode === "change_one"
|
||||||
|
|||||||
Reference in New Issue
Block a user