stream settings: Move stream setting modals to stream_settings folder.

We do following changes in this commit to have a uniform file
structure for stream setting templates.

* Move change_stream_info_modal.hbs to stream_settings folder.
* Rename subscription_stream_privacy_modal.hbs to
  stream_privacy_setting_modal.hbs.
* Move stream_privacy_setting_modal.hbs to stream_settings folder.
This commit is contained in:
m-e-l-u-h-a-n
2021-07-18 18:23:17 +05:30
committed by Tim Abbott
parent 36c8923797
commit f377f8a963
3 changed files with 4 additions and 4 deletions

View File

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

View File

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