Add topic-zooming hooks.

This commit doesn't actually add the final UI to zoom/unzoom
topics, because I want to keep those in separate commits, in
case we change how to enable the feature.  But this commit
adds a toggle_zoom() function that zooms/unzooms topics.

Zooming is minimally invasive, because we don't really introduce
many extra elements to the UI; instead, we just make the list of
streams be a list of length one (i.e. the active stream).  This
gives us a lot of stuff for free, basically, like unread counts, etc.

(imported from commit 814c1361b6210d1591b4174bed1d6e0c98a3f255)
This commit is contained in:
Steve Howell
2013-11-22 15:04:49 -05:00
parent 1080b4239d
commit 44f575c812
4 changed files with 61 additions and 2 deletions

View File

@@ -43,6 +43,7 @@ exports.left_side_userlist = _.contains(['customer7.invalid'], page_params.domai
exports.fade_users_when_composing = page_params.staging || is_customer4;
exports.use_socket = false;
exports.clicking_notification_causes_narrow = page_params.staging || _.contains(['customer25.invalid'], page_params.domain);
exports.topic_zooming = page_params.staging;
// Still burning in...
exports.mark_read_at_bottom = true;