From 7a61044a0306d78629ce93cef201597e2ab72f58 Mon Sep 17 00:00:00 2001 From: Lauryn Menard Date: Wed, 15 May 2024 18:22:45 +0200 Subject: [PATCH] org-settings: Update tab for default channel settings. Updates instances of default-streams-list to instead be default-channels-list as the data-section for the organization settings overlay is part of the URL hash. --- web/src/settings_sections.js | 2 +- web/src/settings_streams.js | 6 +++--- web/styles/settings.css | 2 +- web/templates/invite_user_modal.hbs | 2 +- web/templates/settings/default_streams_list_admin.hbs | 2 +- web/templates/settings_overlay.hbs | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/web/src/settings_sections.js b/web/src/settings_sections.js index 41e171662f..fbedf86f3f 100644 --- a/web/src/settings_sections.js +++ b/web/src/settings_sections.js @@ -67,7 +67,7 @@ export function initialize() { load_func_dict.set("org_bots", settings_users.set_up_bots); load_func_dict.set("org_users", settings_users.set_up_humans); load_func_dict.set("emoji-settings", settings_emoji.set_up); - load_func_dict.set("default-streams-list", settings_streams.set_up); + load_func_dict.set("default-channels-list", settings_streams.set_up); load_func_dict.set("linkifier-settings", settings_linkifiers.set_up); load_func_dict.set("playground-settings", settings_playgrounds.set_up); load_func_dict.set("invites-list-admin", settings_invites.set_up); diff --git a/web/src/settings_streams.js b/web/src/settings_streams.js index 030290b4e7..0c606d3217 100644 --- a/web/src/settings_streams.js +++ b/web/src/settings_streams.js @@ -91,7 +91,7 @@ export function maybe_disable_widgets() { return; } - $(".organization-box [data-name='default-streams-list']") + $(".organization-box [data-name='default-channels-list']") .find("input:not(.search), button, select") .prop("disabled", true); } @@ -120,12 +120,12 @@ export function build_default_stream_table() { scroll_util.reset_scrollbar($table); }, }, - $parent_container: $("#admin-default-streams-list").expectOne(), + $parent_container: $("#admin-default-channels-list").expectOne(), init_sort: "name_alphabetic", sort_fields: { ...ListWidget.generic_sort_functions("alphabetic", ["name"]), }, - $simplebar_container: $("#admin-default-streams-list .progressive-table-wrapper"), + $simplebar_container: $("#admin-default-channels-list .progressive-table-wrapper"), }); loading.destroy_indicator($("#admin_page_default_streams_loading_indicator")); diff --git a/web/styles/settings.css b/web/styles/settings.css index 903df30802..a50375b9f8 100644 --- a/web/styles/settings.css +++ b/web/styles/settings.css @@ -851,7 +851,7 @@ input[type="checkbox"] { width: 100%; } -#admin-default-streams-list .progressive-table-wrapper { +#admin-default-channels-list .progressive-table-wrapper { max-height: calc(95vh - 280px); } diff --git a/web/templates/invite_user_modal.hbs b/web/templates/invite_user_modal.hbs index 3ac04fd08b..c4ce3c1d4e 100644 --- a/web/templates/invite_user_modal.hbs +++ b/web/templates/invite_user_modal.hbs @@ -13,7 +13,7 @@ {{else if (not can_subscribe_other_users)}}
{{#tr}}The users you invite will be automatically added to default channels for this organization, as you do not have permission to configure which channels new users join. - {{#*inline "z-link"}}{{> @partial-block}}{{/inline}} + {{#*inline "z-link"}}{{> @partial-block}}{{/inline}} {{/tr}}
{{/if}} diff --git a/web/templates/settings/default_streams_list_admin.hbs b/web/templates/settings/default_streams_list_admin.hbs index 63317acda9..3de714f04e 100644 --- a/web/templates/settings/default_streams_list_admin.hbs +++ b/web/templates/settings/default_streams_list_admin.hbs @@ -1,4 +1,4 @@ -
+

{{t "Configure the default channels new users are subscribed to when joining your organization." }}

diff --git a/web/templates/settings_overlay.hbs b/web/templates/settings_overlay.hbs index c5ae848afc..465ef860ec 100644 --- a/web/templates/settings_overlay.hbs +++ b/web/templates/settings_overlay.hbs @@ -124,7 +124,7 @@ {{#unless is_guest}} -
  • +
  • {{t "Default channels" }}
    {{#unless is_admin}}