Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Anders Kaseorgd763cbfa2c0f
diff --git a/web/src/stream_popover.js b/web/src/stream_popover.js
index a4d80f61781..b55cfbbade3 100644
--- a/web/src/stream_popover.js
+++ b/web/src/stream_popover.js
@@ -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"
? {
diff --git a/web/templates/move_topic_to_stream.hbs b/web/templates/move_topic_to_stream.hbs
index dd064a7a154..ae44a9201c3 100644
--- a/web/templates/move_topic_to_stream.hbs
+++ b/web/templates/move_topic_to_stream.hbs
@@ -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>