Allow admins to change public/private on streams.

This is the UI piece that finishes the features to let admins
make streams private or public.

(imported from commit 1a193165a6304dc358982e9850a75965fb3a03fd)
This commit is contained in:
Steve Howell
2014-01-03 14:35:52 -05:00
parent 654ce3e0c7
commit badeb70be2
5 changed files with 105 additions and 4 deletions

View File

@@ -403,6 +403,8 @@ function render(template_name, args) {
render_subscribers: true,
color: 'purple',
invite_only: true,
can_make_public: true,
can_make_private: true, /* not logical, but that's ok */
email_address: 'xxxxxxxxxxxxxxx@zulip.com',
id: 888,
in_home_view: true
@@ -418,6 +420,7 @@ function render(template_name, args) {
global.use_template('subscription'); // partial
global.use_template('subscription_type'); // partial
global.use_template('subscription_setting_icon'); // partial
global.use_template('change_stream_privacy'); // partial
var html = '';
html += '<div id="subscriptions_table">';
html += render('subscription_table_body', args);