mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
stream_popover: Read propagate_mode via the existing .serializeArray().
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Anders Kaseorg
parent
6083cf69c8
commit
d763cbfa2c
@@ -476,7 +476,7 @@ export async function build_move_topic_to_stream_popover(
|
||||
if (message !== undefined) {
|
||||
// We already have the message_id here which means that modal is opened using
|
||||
// message popover.
|
||||
propagate_mode = $("#move_topic_modal select.message_edit_topic_propagate").val();
|
||||
propagate_mode = params.propagate_mode;
|
||||
const toast_params =
|
||||
propagate_mode === "change_one"
|
||||
? {
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<input name="old_topic_name" type="hidden" value="{{topic_name}}" />
|
||||
<input name="current_stream_id" type="hidden" value="{{current_stream_id}}" />
|
||||
{{#if from_message_actions_popover}}
|
||||
<select class="message_edit_topic_propagate modal_select bootstrap-focus-style">
|
||||
<select name="propagate_mode" class="message_edit_topic_propagate modal_select bootstrap-focus-style">
|
||||
<option value="change_one" {{#if (eq message_placement "last")}}selected{{/if}}> {{t "Move only this message" }}</option>
|
||||
<option value="change_later" {{#if (eq message_placement "intermediate")}}selected{{/if}}> {{t "Move this and all following messages in this topic" }}</option>
|
||||
<option value="change_all" {{#if (eq message_placement "first")}}selected{{/if}}> {{t "Move all messages in this topic" }}</option>
|
||||
|
||||
Reference in New Issue
Block a user