Files
zulip/static/js
Pragati Agrawal ada37a10f4 stream edit: Move logic for disabled checkboxes from template to js.
In templates we determine checkboxes are disabled by using the following
`if` clause,
```
{{#if (or (and is_muted notification_setting) realm_setting_disabled)}}
disabled="disabled"
{{/if}}
```
and it is more intuitive to do such calculation in javascript code, so we
added an `if_disabled` attribute in `settings` context which replaces
logical operations from `if` statement.

So for non-notification settings, it is
```
is_disabled: check_realm_setting[setting]
```
where check_realm_setting[setting] is same as realm_setting_disabled.

and for notifiaction settings it is,

```
ret.is_disabled = check_realm_setting[setting] || sub.is_muted;
```
2020-01-28 14:09:07 -08:00
..
2020-01-05 12:27:28 -08:00
2019-12-30 09:50:22 -08:00
2019-10-25 13:51:21 -07:00
2020-01-03 17:19:50 -08:00
2020-01-14 12:39:17 -08:00
2020-01-28 16:47:56 -05:00
2020-01-14 15:40:40 -08:00
2020-01-03 17:19:50 -08:00
2019-10-25 13:51:21 -07:00
2020-01-05 12:27:28 -08:00
2020-01-03 17:19:50 -08:00
2020-01-15 18:01:59 -08:00
2019-10-25 13:51:21 -07:00