compose: Rename stream selection widget to "select_recipient".

Previously this dropdown was only for selecting streams, but
soon it will also be for switching to a private message. This
name helps it be clearer that the dropdown is more general
purpose.
This commit is contained in:
evykassirer
2023-04-17 20:13:50 -07:00
committed by Tim Abbott
parent c8a9c0ee04
commit 695946746e
22 changed files with 69 additions and 72 deletions

View File

@@ -394,7 +394,7 @@ export function validation_error(error_type, stream_name) {
compose_banner.show_error_message(
$t({defaultMessage: "Error checking subscription."}),
compose_banner.CLASSNAMES.subscription_error,
$("#compose_select_stream_widget"),
$("#compose_select_recipient_widget"),
);
return false;
case "not-subscribed": {
@@ -441,7 +441,7 @@ function validate_stream_message() {
compose_banner.show_error_message(
$t({defaultMessage: "Please specify a stream."}),
compose_banner.CLASSNAMES.missing_stream,
$("#compose_select_stream_widget"),
$("#compose_select_recipient_widget"),
);
return false;
}