compose: Show banner if user is not allowed to post in the stream.

We now show a banner on opening the compose box and changing the
stream in dropdown, if a user is not allowed to post in a stream.

The "Send" button is also disabled if user is not allowed to post
in the stream.

This commit also moved the CSS for disabled modal button in dark
theme below after the other CSS for modals as we are using the
same CSS for the "Send" button as well in disabled state.
This commit is contained in:
Sahil Batra
2023-04-23 17:48:48 +05:30
committed by Tim Abbott
parent e02111e458
commit 7eacd525b4
8 changed files with 58 additions and 5 deletions

View File

@@ -131,6 +131,7 @@ test("start", ({override, override_rewire}) => {
override_rewire(compose_actions, "blur_compose_inputs", () => {});
override_rewire(compose_actions, "clear_textarea", () => {});
override_rewire(compose_recipient, "update_on_recipient_change", () => {});
override_rewire(compose_recipient, "check_stream_posting_policy_for_compose_box", () => {});
stream_bar.decorate = () => {};
mock_stream_header_colorblock();