From c382f8c9a68a5f8f914b59ae6e6d9ec1f8ddb296 Mon Sep 17 00:00:00 2001 From: Sahil Batra Date: Fri, 27 May 2022 17:34:40 +0530 Subject: [PATCH] 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". --- static/js/stream_edit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/stream_edit.js b/static/js/stream_edit.js index 11640ee286..ccf79f4f95 100644 --- a/static/js/stream_edit.js +++ b/static/js/stream_edit.js @@ -639,7 +639,7 @@ export function initialize() { const stream_id = get_stream_id(e.target); if (!stream_id) { ui_report.client_error( - $t_html({defaultMessage: "Invalid stream id"}), + $t_html({defaultMessage: "Invalid stream ID"}), $(".stream_change_property_info"), ); return; @@ -649,7 +649,7 @@ export function initialize() { const stream_id = $(".dialog_submit_button").data("stream-id"); if (!stream_id) { ui_report.client_error( - $t_html({defaultMessage: "Invalid stream id"}), + $t_html({defaultMessage: "Invalid stream ID"}), $(".stream_change_property_info"), ); return;