stream_popover: Read propagate_mode via the existing .serializeArray().

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-11-27 14:46:00 -08:00
committed by Anders Kaseorg
parent 6083cf69c8
commit d763cbfa2c
2 changed files with 2 additions and 2 deletions

View File

@@ -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"
? {

View File

@@ -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>