From b71f4b9342db3247ee2db32c49dd3b4b5f70d603 Mon Sep 17 00:00:00 2001 From: Lauryn Menard Date: Thu, 18 Apr 2024 12:04:16 +0200 Subject: [PATCH] stream-settings: Remove unused tooltip for announcement stream. In commit 449febf036, the tooltip that provided information about the announcement stream was replace with inline text on the form. Removes the now unused template and code in stream_create for this tooltip. --- web/src/stream_create.js | 13 ------------- web/templates/announce_stream_docs.hbs | 9 --------- 2 files changed, 22 deletions(-) delete mode 100644 web/templates/announce_stream_docs.hbs diff --git a/web/src/stream_create.js b/web/src/stream_create.js index b2b9d3f68e..a4003c75a2 100644 --- a/web/src/stream_create.js +++ b/web/src/stream_create.js @@ -1,7 +1,5 @@ import $ from "jquery"; -import tippy from "tippy.js"; -import render_announce_stream_docs from "../templates/announce_stream_docs.hbs"; import render_subscription_invites_warning_modal from "../templates/confirm_dialog/confirm_subscription_invites_warning.hbs"; import * as channel from "./channel"; @@ -18,7 +16,6 @@ import * as stream_data from "./stream_data"; import * as stream_settings_components from "./stream_settings_components"; import * as stream_ui_updates from "./stream_ui_updates"; import * as ui_report from "./ui_report"; -import {parse_html} from "./ui_util"; let created_stream; @@ -454,16 +451,6 @@ export function set_up_handlers() { stream_name_error.pre_validate(stream_name); }); - tippy("#announce-stream-docs", { - content: () => - parse_html( - render_announce_stream_docs({ - new_stream_announcements_stream: - stream_data.get_new_stream_announcements_stream(), - }), - ), - }); - // Do not allow the user to enter newline characters while typing out the // stream's description during it's creation. $container.on("keydown", "#create_stream_description", (e) => { diff --git a/web/templates/announce_stream_docs.hbs b/web/templates/announce_stream_docs.hbs deleted file mode 100644 index b6fe0a5f65..0000000000 --- a/web/templates/announce_stream_docs.hbs +++ /dev/null @@ -1,9 +0,0 @@ -{{! Explanation of what "announce stream" does when creating a stream }} -
- - {{#tr}} -

Stream will be announced in #{new_stream_announcements_stream}.

- {{/tr}} -

{{t 'Organization administrators can change the announcement stream in the organization settings.' }}

- -