diff --git a/static/js/feature_flags.js b/static/js/feature_flags.js index 3462161f9b..d817e09293 100644 --- a/static/js/feature_flags.js +++ b/static/js/feature_flags.js @@ -44,6 +44,7 @@ exports.show_autoscroll_forever_option = page_params.show_autoscroll_forever_opt exports.full_width = false; //page_params.staging; exports.cleanup_before_reload = page_params.staging || is_customer4; +exports.new_bot_ui = page_params.staging; // This list must match the list of domains in enqueue_digest_emails. exports.dont_show_digest_email_setting = _.contains(["mit.edu", "customer29.invalid", "customer20.invalid"], diff --git a/static/js/settings.js b/static/js/settings.js index 2676df1138..3c5701f107 100644 --- a/static/js/settings.js +++ b/static/js/settings.js @@ -2,6 +2,8 @@ var settings = (function () { var exports = {}; +var streams = []; + function add_bot_row(name, email, avatar_url, api_key) { var info = { name: name, @@ -20,6 +22,16 @@ function is_local_part(value, element) { return this.optional(element) || /^[\-!#$%&'*+\/=?\^_`{}|~0-9A-Z]+(\.[\-!#$%&'*+\/=?\^_`{}|~0-9A-Z]+)*$/i.test(value); } +function build_stream_list($select) { + $select.empty(); + _.each(_.pluck(streams, 'name'), function (name) { + $select.append($('