mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 03:11:54 +00:00
settings: Add display setting for demoting inactive streams.
This adds a setting to control Zulip's default behavior of sorting to bottom and graying out inactive streams. The previous logic is still the default "automatic", but this gives users more control. See the models.py comment for details. Fixes #11524.
This commit is contained in:
@@ -376,6 +376,7 @@ exports.dispatch_normal_event = function dispatch_normal_event(event) {
|
||||
case 'update_display_settings':
|
||||
var user_display_settings = [
|
||||
'default_language',
|
||||
'demote_inactive_streams',
|
||||
'dense_mode',
|
||||
'emojiset',
|
||||
'high_contrast_mode',
|
||||
@@ -404,6 +405,9 @@ exports.dispatch_normal_event = function dispatch_normal_event(event) {
|
||||
if (event.setting_name === 'high_contrast_mode') {
|
||||
$("body").toggleClass("high-contrast");
|
||||
}
|
||||
if (event.setting_name === 'demote_inactive_streams') {
|
||||
stream_list.update_streams_sidebar();
|
||||
}
|
||||
if (event.setting_name === 'dense_mode') {
|
||||
$("body").toggleClass("less_dense_mode");
|
||||
$("body").toggleClass("more_dense_mode");
|
||||
|
||||
Reference in New Issue
Block a user