mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 09:27:43 +00:00
compose: Update error shown on sending message with no topic.
This commit updates the error message shown on sending a message with no topic in an organization with mandatory_topics setting set as true to match the error message in API.
This commit is contained in:
@@ -245,7 +245,7 @@ test_ui("validate", ({override, mock_template}) => {
|
|||||||
assert.ok(!compose_validate.validate());
|
assert.ok(!compose_validate.validate());
|
||||||
assert.equal(
|
assert.equal(
|
||||||
$("#compose-error-msg").html(),
|
$("#compose-error-msg").html(),
|
||||||
$t_html({defaultMessage: "Please specify a topic"}),
|
$t_html({defaultMessage: "Topics are required in this organization"}),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -526,7 +526,7 @@ function validate_stream_message() {
|
|||||||
const topic = compose_state.topic();
|
const topic = compose_state.topic();
|
||||||
if (topic === "") {
|
if (topic === "") {
|
||||||
compose_error.show(
|
compose_error.show(
|
||||||
$t_html({defaultMessage: "Please specify a topic"}),
|
$t_html({defaultMessage: "Topics are required in this organization"}),
|
||||||
$("#stream_message_recipient_topic"),
|
$("#stream_message_recipient_topic"),
|
||||||
);
|
);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user