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 settings: Move stream setting modals to stream_settings folder.

m-e-l-u-h-a-nf377f8a96302
diff --git a/static/js/stream_edit.js b/static/js/stream_edit.js
index 9fed20465b2..70058749a79 100644
--- a/static/js/stream_edit.js
+++ b/static/js/stream_edit.js
@@ -1,13 +1,13 @@
import $ from "jquery";
-import render_change_stream_info_modal from "../templates/change_stream_info_modal.hbs";
import render_settings_deactivation_stream_modal from "../templates/confirm_dialog/confirm_deactivate_stream.hbs";
import render_unsubscribe_private_stream_modal from "../templates/confirm_dialog/confirm_unsubscribe_private_stream.hbs";
+import render_change_stream_info_modal from "../templates/stream_settings/change_stream_info_modal.hbs";
import render_stream_description from "../templates/stream_settings/stream_description.hbs";
import render_stream_member_list_entry from "../templates/stream_settings/stream_member_list_entry.hbs";
+import render_stream_privacy_setting_modal from "../templates/stream_settings/stream_privacy_setting_modal.hbs";
import render_stream_settings from "../templates/stream_settings/stream_settings.hbs";
import render_stream_subscription_request_result from "../templates/stream_subscription_request_result.hbs";
-import render_subscription_stream_privacy_modal from "../templates/subscription_stream_privacy_modal.hbs";
import * as blueslip from "./blueslip";
import * as browser_history from "./browser_history";
@@ -752,7 +752,7 @@ export function initialize() {
page_params.upgrade_text_for_wide_organization_logo,
is_stream_edit: true,
};
- const change_privacy_modal = render_subscription_stream_privacy_modal(template_data);
+ const change_privacy_modal = render_stream_privacy_setting_modal(template_data);
$("#stream_privacy_modal").remove();
$("#subscriptions_table").append(change_privacy_modal);
set_stream_message_retention_setting_dropdown(stream);
diff --git a/static/templates/change_stream_info_modal.hbs b/static/templates/stream_settings/change_stream_info_modal.hbs
similarity index 100%
rename from static/templates/change_stream_info_modal.hbs
rename to static/templates/stream_settings/change_stream_info_modal.hbs
diff --git a/static/templates/subscription_stream_privacy_modal.hbs b/static/templates/stream_settings/stream_privacy_setting_modal.hbs
similarity index 96%
rename from static/templates/subscription_stream_privacy_modal.hbs
rename to static/templates/stream_settings/stream_privacy_setting_modal.hbs
index e75cca04415..2ece81bab69 100644
--- a/static/templates/subscription_stream_privacy_modal.hbs
+++ b/static/templates/stream_settings/stream_privacy_setting_modal.hbs
@@ -4,7 +4,7 @@
<h3 id="stream_privacy_modal_label">{{#tr}}Change stream permissions for #{stream_name}{{/tr}}<span class="email"></span></h3>
</div>
<div class="modal-body">
- {{> stream_types }}
+ {{> ../stream_types }}
</div>
<div class="modal-footer">
<button class="button rounded close-modal-btn" data-dismiss="modal">{{t "Cancel" }}</button>