stream_edit: Capitalize "ID" when showing invalid stream ID errors.

This commit changes the error message, shown while trying to deactivate
a non existent stream from stream settings UI, from "Invalid stream id"
to "Invalid stream ID".
This commit is contained in:
Sahil Batra 2022-05-27 17:34:40 +05:30 committed by Tim Abbott
parent 708204290e
commit c382f8c9a6
1 changed files with 2 additions and 2 deletions

View File

@ -639,7 +639,7 @@ export function initialize() {
const stream_id = get_stream_id(e.target); const stream_id = get_stream_id(e.target);
if (!stream_id) { if (!stream_id) {
ui_report.client_error( ui_report.client_error(
$t_html({defaultMessage: "Invalid stream id"}), $t_html({defaultMessage: "Invalid stream ID"}),
$(".stream_change_property_info"), $(".stream_change_property_info"),
); );
return; return;
@ -649,7 +649,7 @@ export function initialize() {
const stream_id = $(".dialog_submit_button").data("stream-id"); const stream_id = $(".dialog_submit_button").data("stream-id");
if (!stream_id) { if (!stream_id) {
ui_report.client_error( ui_report.client_error(
$t_html({defaultMessage: "Invalid stream id"}), $t_html({defaultMessage: "Invalid stream ID"}),
$(".stream_change_property_info"), $(".stream_change_property_info"),
); );
return; return;