mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 12:03:46 +00:00 
			
		
		
		
	stream settings: Fix "Saving" widget for Muted streams.
"Saving" widget was working for all personal stream settings but "Mute notifications". This was because the change to the "Mute" property follows a slightly different path.
This commit is contained in:
		
				
					committed by
					
						 Tim Abbott
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							f7a886d821
						
					
				
				
					commit
					55db6ed1e3
				
			| @@ -311,7 +311,7 @@ function stream_is_muted_clicked(e) { | ||||
|     const sub_settings = exports.settings_for_sub(sub); | ||||
|     const notification_checkboxes = sub_settings.find(".sub_notification_setting"); | ||||
|  | ||||
|     subs.toggle_home(sub); | ||||
|     subs.toggle_home(sub, `#stream_change_property_status${sub.stream_id}`); | ||||
|  | ||||
|     if (!sub.is_muted) { | ||||
|         sub_settings.find(".mute-note").addClass("hide-mute-note"); | ||||
|   | ||||
| @@ -95,9 +95,9 @@ exports.active_stream = function () { | ||||
|     } | ||||
| }; | ||||
|  | ||||
| exports.toggle_home = function (sub) { | ||||
| exports.toggle_home = function (sub, status_element) { | ||||
|     stream_muting.update_is_muted(sub, !sub.is_muted); | ||||
|     stream_edit.set_stream_property(sub, 'is_muted', sub.is_muted); | ||||
|     stream_edit.set_stream_property(sub, 'is_muted', sub.is_muted, status_element); | ||||
| }; | ||||
|  | ||||
| exports.toggle_pin_to_top_stream = function (sub) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user