mirror of
				https://github.com/vector-im/element-web.git
				synced 2025-11-04 02:02:14 +01:00 
			
		
		
		
	Add setting for audio notifications
Expose the enableAudioNotifications setting in the user settings panel.
This commit is contained in:
		
							parent
							
								
									a4d22ffe8c
								
							
						
					
					
						commit
						e777db3fc4
					
				@ -1085,6 +1085,24 @@ module.exports = React.createClass({
 | 
				
			|||||||
                        </div>
 | 
					                        </div>
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                    <div className="mx_UserNotifSettings_tableRow">
 | 
				
			||||||
 | 
					                        <div className="mx_UserNotifSettings_inputCell">
 | 
				
			||||||
 | 
					                            <input id="enableDesktopAudioNotifications"
 | 
				
			||||||
 | 
					                                ref="enableDesktopAudioNotifications"
 | 
				
			||||||
 | 
					                                type="checkbox"
 | 
				
			||||||
 | 
					                                checked={ UserSettingsStore.getEnableAudioNotifications() }
 | 
				
			||||||
 | 
					                                onChange={ (e) => {
 | 
				
			||||||
 | 
					                                    UserSettingsStore.setEnableAudioNotifications(e.target.checked);
 | 
				
			||||||
 | 
					                                    this.forceUpdate();
 | 
				
			||||||
 | 
					                                }} />
 | 
				
			||||||
 | 
					                        </div>
 | 
				
			||||||
 | 
					                        <div className="mx_UserNotifSettings_labelCell">
 | 
				
			||||||
 | 
					                            <label htmlFor="enableDesktopAudioNotifications">
 | 
				
			||||||
 | 
					                                Enable audible notifications in web client
 | 
				
			||||||
 | 
					                            </label>
 | 
				
			||||||
 | 
					                        </div>
 | 
				
			||||||
 | 
					                    </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    <h3>General use</h3>
 | 
					                    <h3>General use</h3>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    <div className="mx_UserNotifSettings_pushRulesTableWrapper">
 | 
					                    <div className="mx_UserNotifSettings_pushRulesTableWrapper">
 | 
				
			||||||
 | 
				
			|||||||
@ -29,7 +29,7 @@ limitations under the License.
 | 
				
			|||||||
.mx_UserNotifSettings_labelCell
 | 
					.mx_UserNotifSettings_labelCell
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    padding-bottom: 21px;
 | 
					    padding-bottom: 21px;
 | 
				
			||||||
    width: 270px;
 | 
					    width: 400px;
 | 
				
			||||||
    display: table-cell;
 | 
					    display: table-cell;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user