mirror of https://github.com/zulip/zulip.git
narrow_banner: Update invalid/private channel empty narrow copy.
Decided here: https://chat.zulip.org/#narrow/channel/6-frontend/topic/unknown.20channel.20ID.20-.20empty.20feed.20banner/near/1956965
This commit is contained in:
parent
6121d97ae9
commit
2c9d4eaeee
|
@ -290,7 +290,10 @@ export function pick_empty_narrow_banner(): NarrowBannerData {
|
|||
}
|
||||
|
||||
return {
|
||||
title: $t({defaultMessage: "This channel does not exist or is private."}),
|
||||
title: $t({
|
||||
defaultMessage:
|
||||
"This channel doesn't exist, or you are not allowed to view it.",
|
||||
}),
|
||||
};
|
||||
}
|
||||
// else fallthrough to default case
|
||||
|
|
|
@ -253,7 +253,9 @@ run_test("show_empty_narrow_message", ({mock_template, override}) => {
|
|||
narrow_banner.show_empty_narrow_message();
|
||||
assert.equal(
|
||||
$(".empty_feed_notice_main").html(),
|
||||
empty_narrow_html("translated: This channel does not exist or is private."),
|
||||
empty_narrow_html(
|
||||
"translated: This channel doesn't exist, or you are not allowed to view it.",
|
||||
),
|
||||
);
|
||||
|
||||
// for non-subbed public stream
|
||||
|
@ -573,7 +575,9 @@ run_test("show_empty_narrow_message", ({mock_template, override}) => {
|
|||
narrow_banner.show_empty_narrow_message();
|
||||
assert.equal(
|
||||
$(".empty_feed_notice_main").html(),
|
||||
empty_narrow_html("translated: This channel does not exist or is private."),
|
||||
empty_narrow_html(
|
||||
"translated: This channel doesn't exist, or you are not allowed to view it.",
|
||||
),
|
||||
);
|
||||
|
||||
set_filter([
|
||||
|
|
Loading…
Reference in New Issue