zulip/web
N-Shar-ma cec11be7c1 compose: Disable send button when upload/s are in progress.
Earlier, the send button's state was determined independently by the
message length and the upload status, and its containing `div`'s state
was separately determined on recipient change by whether the user had
permission to post in that stream, or if direct messages were allowed
in the organisation. The main problem was that as the message length
check was run on each character input, it often overrode the upload
status check.

Now for consistency, the code has been refactored to always disable the
send button by accordingly styling its containing `div`; and using the
observer pattern we update it anytime the message length, upload status,
or the recipient changes, considering **all** of them together.

(The Save button when editing a message still works like before -- only
dependent on upload status.)

Fixes: #21135.
2023-11-17 10:31:58 -08:00
..
e2e-tests compose_box: Don't fill Topic line on restored draft. 2023-11-13 12:45:13 -08:00
generated
html
images inbox: Improve look of empty inbox view. 2023-10-20 17:13:33 -07:00
shared sort_emojis: Prioritize perfect matches above all. 2023-11-14 12:13:22 -08:00
src compose: Disable send button when upload/s are in progress. 2023-11-17 10:31:58 -08:00
styles streams: Add API endpoint to get stream email. 2023-11-16 13:25:33 -05:00
templates gear_menu: Rename "Manage streams" -> "Stream settings". 2023-11-17 08:53:41 -08:00
tests compose: Disable send button when upload/s are in progress. 2023-11-17 10:31:58 -08:00
third Revert "linkifiers: Match JS implementation to server implementation." 2023-11-16 14:59:48 -08:00
.browserslistrc webpack: Move webpack configuration to web. 2023-02-24 06:35:58 -08:00
.gitignore
babel.config.js dependencies: Upgrade JavaScript dependencies. 2023-10-09 14:16:23 -07:00
debug-require-webpack-plugin.ts eslint: Forbid unchecked casts in TypeScript. 2023-10-26 09:54:30 -07:00
debug-require.js
postcss.config.js postcss: Enable postcss-preset-env. 2023-03-20 11:26:30 -07:00
webpack.assets.json upgrade: Use style similar to /billing page. 2023-11-13 10:35:39 -08:00
webpack.config.ts webpack_public_path: Replace with webpack 5 publicPath: "auto" setting. 2023-10-16 10:36:27 -07:00
webpack.dev-assets.json development: Update modal in emails page to use micromodal. 2023-10-05 09:28:27 -07:00