mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
We now render the "skin" part of "Stream Settings" before adding in the actual streams. The new function populate_stream_settings_left_panel() takes care of adding the streams. It uses a new template called `subscriptions.handlebars`. Splitting out this function will give us more flexibility for various improvements. First, we can decide to render the list after we open the overlay, just to avoid the problem that users don't know why the modal's opening. (And we could add a loader spinner as needed.) Second, we can improve our filter features so that we do filtering in the data instead of moving DOM rows around, which is expensive. Third, we can eventually introduce progressive rendering. Finally, having the function broken out will make profiling more precise about where bottlenecks exist.
4 lines
61 B
Handlebars
4 lines
61 B
Handlebars
{{#each subscriptions}}
|
|
{{partial "subscription"}}
|
|
{{/each}}
|