subs: Add `stream_ui_updates.js` module for managing ui elements.

This commit adds `stream_ui_updates.js` module. This module
will includes functions which will update different ui elements
(i.e. subscription button, subscriber count).
This commit is contained in:
Yashashvi Dave 2019-04-02 20:37:37 +05:30 committed by Tim Abbott
parent 98a1e340ad
commit 3649a9f15c
5 changed files with 15 additions and 0 deletions

View File

@ -169,6 +169,7 @@
"stream_muting": false,
"stream_popover": false,
"stream_sort": false,
"stream_ui_updates": false,
"StripeCheckout": false,
"submessage": false,
"subs": false,

View File

@ -203,6 +203,7 @@ import "js/panels.js";
import 'js/settings_ui.js';
import 'js/search_pill.js';
import 'js/search_pill_widget.js';
import 'js/stream_ui_updates.js';
// Import Styles

View File

@ -137,6 +137,7 @@ declare var stream_list: any;
declare var stream_muting: any;
declare var stream_popover: any;
declare var stream_sort: any;
declare var stream_ui_updates: any;
declare var submessage: any;
declare var subs: any;
declare var tab_bar: any;

View File

@ -0,0 +1,11 @@
var stream_ui_updates = (function () {
var exports = {};
return exports;
}());
if (typeof module !== 'undefined') {
module.exports = stream_ui_updates;
}
window.stream_ui_updates = stream_ui_updates;

View File

@ -72,6 +72,7 @@ enforce_fully_covered = {
'static/js/stream_data.js',
'static/js/stream_events.js',
'static/js/stream_sort.js',
'static/js/stream_ui_updates.js',
'static/js/top_left_corner.js',
'static/js/topic_data.js',
'static/js/topic_generator.js',