mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	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:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							98a1e340ad
						
					
				
				
					commit
					3649a9f15c
				
			@@ -169,6 +169,7 @@
 | 
				
			|||||||
        "stream_muting": false,
 | 
					        "stream_muting": false,
 | 
				
			||||||
        "stream_popover": false,
 | 
					        "stream_popover": false,
 | 
				
			||||||
        "stream_sort": false,
 | 
					        "stream_sort": false,
 | 
				
			||||||
 | 
					        "stream_ui_updates": false,
 | 
				
			||||||
        "StripeCheckout": false,
 | 
					        "StripeCheckout": false,
 | 
				
			||||||
        "submessage": false,
 | 
					        "submessage": false,
 | 
				
			||||||
        "subs": false,
 | 
					        "subs": false,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -203,6 +203,7 @@ import "js/panels.js";
 | 
				
			|||||||
import 'js/settings_ui.js';
 | 
					import 'js/settings_ui.js';
 | 
				
			||||||
import 'js/search_pill.js';
 | 
					import 'js/search_pill.js';
 | 
				
			||||||
import 'js/search_pill_widget.js';
 | 
					import 'js/search_pill_widget.js';
 | 
				
			||||||
 | 
					import 'js/stream_ui_updates.js';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Import Styles
 | 
					// Import Styles
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										1
									
								
								static/js/js_typings/zulip/index.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								static/js/js_typings/zulip/index.d.ts
									
									
									
									
										vendored
									
									
								
							@@ -137,6 +137,7 @@ declare var stream_list: any;
 | 
				
			|||||||
declare var stream_muting: any;
 | 
					declare var stream_muting: any;
 | 
				
			||||||
declare var stream_popover: any;
 | 
					declare var stream_popover: any;
 | 
				
			||||||
declare var stream_sort: any;
 | 
					declare var stream_sort: any;
 | 
				
			||||||
 | 
					declare var stream_ui_updates: any;
 | 
				
			||||||
declare var submessage: any;
 | 
					declare var submessage: any;
 | 
				
			||||||
declare var subs: any;
 | 
					declare var subs: any;
 | 
				
			||||||
declare var tab_bar: any;
 | 
					declare var tab_bar: any;
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										11
									
								
								static/js/stream_ui_updates.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								static/js/stream_ui_updates.js
									
									
									
									
									
										Normal 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;
 | 
				
			||||||
@@ -72,6 +72,7 @@ enforce_fully_covered = {
 | 
				
			|||||||
    'static/js/stream_data.js',
 | 
					    'static/js/stream_data.js',
 | 
				
			||||||
    'static/js/stream_events.js',
 | 
					    'static/js/stream_events.js',
 | 
				
			||||||
    'static/js/stream_sort.js',
 | 
					    'static/js/stream_sort.js',
 | 
				
			||||||
 | 
					    'static/js/stream_ui_updates.js',
 | 
				
			||||||
    'static/js/top_left_corner.js',
 | 
					    'static/js/top_left_corner.js',
 | 
				
			||||||
    'static/js/topic_data.js',
 | 
					    'static/js/topic_data.js',
 | 
				
			||||||
    'static/js/topic_generator.js',
 | 
					    'static/js/topic_generator.js',
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user