mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 10:57:58 +00:00
onboarding: Remove channel name from channel created modal heading.
This commit removes the channel name from the heading of the first channel created modal.
This commit is contained in:
committed by
Tim Abbott
parent
3ae0c4c68b
commit
d73397a221
@@ -1,7 +1,6 @@
|
|||||||
import $ from "jquery";
|
import $ from "jquery";
|
||||||
import assert from "minimalistic-assert";
|
import assert from "minimalistic-assert";
|
||||||
|
|
||||||
import render_inline_decorated_channel_name from "../templates/inline_decorated_channel_name.hbs";
|
|
||||||
import render_first_stream_created_modal from "../templates/stream_settings/first_stream_created_modal.hbs";
|
import render_first_stream_created_modal from "../templates/stream_settings/first_stream_created_modal.hbs";
|
||||||
|
|
||||||
import * as activity_ui from "./activity_ui.ts";
|
import * as activity_ui from "./activity_ui.ts";
|
||||||
@@ -12,7 +11,7 @@ import * as compose_recipient from "./compose_recipient.ts";
|
|||||||
import * as compose_state from "./compose_state.ts";
|
import * as compose_state from "./compose_state.ts";
|
||||||
import * as dialog_widget from "./dialog_widget.ts";
|
import * as dialog_widget from "./dialog_widget.ts";
|
||||||
import * as hash_util from "./hash_util.ts";
|
import * as hash_util from "./hash_util.ts";
|
||||||
import {$t, $t_html} from "./i18n.ts";
|
import {$t} from "./i18n.ts";
|
||||||
import * as message_lists from "./message_lists.ts";
|
import * as message_lists from "./message_lists.ts";
|
||||||
import * as message_live_update from "./message_live_update.ts";
|
import * as message_live_update from "./message_live_update.ts";
|
||||||
import * as message_view from "./message_view.ts";
|
import * as message_view from "./message_view.ts";
|
||||||
@@ -243,12 +242,7 @@ export function update_property<P extends keyof UpdatableStreamProperties>(
|
|||||||
|
|
||||||
function show_first_stream_created_modal(stream: StreamSubscription): void {
|
function show_first_stream_created_modal(stream: StreamSubscription): void {
|
||||||
dialog_widget.launch({
|
dialog_widget.launch({
|
||||||
html_heading: $t_html(
|
html_heading: $t({defaultMessage: "Channel created!"}),
|
||||||
{defaultMessage: "Channel <b><z-stream></z-stream></b> created!"},
|
|
||||||
{
|
|
||||||
"z-stream": () => render_inline_decorated_channel_name({stream}),
|
|
||||||
},
|
|
||||||
),
|
|
||||||
html_body: render_first_stream_created_modal({stream}),
|
html_body: render_first_stream_created_modal({stream}),
|
||||||
id: "first_stream_created_modal",
|
id: "first_stream_created_modal",
|
||||||
on_click(): void {
|
on_click(): void {
|
||||||
|
|||||||
Reference in New Issue
Block a user