refactor: Export settings_bots.render_bots().

We also now call this explicitly when we need to
re-render (instead of triggering a custom event).
This commit is contained in:
Steve Howell
2018-07-02 18:06:09 +00:00
committed by Tim Abbott
parent b938523592
commit 26b48b95dc
4 changed files with 6 additions and 10 deletions

View File

@@ -12,7 +12,7 @@ var bot_data = (function () {
'config_data', 'service_name', 'token'];
var send_change_event = _.debounce(function () {
$(document).trigger('zulip.bot_data_changed');
settings_bots.render_bots();
}, 50);
var set_can_admin = function bot_data__set_can_admin(bot) {