@@ -77,40 +77,40 @@ module.exports = React.createClass({
7777 } ,
7878
7979 _onClickAlertMe : function ( ) {
80- this . _save ( 'all_messages_loud' ) ;
80+ this . _save ( RoomNotifs . ALL_MESSAGES_LOUD ) ;
8181 } ,
8282
8383 _onClickAllNotifs : function ( ) {
84- this . _save ( 'all_messages' ) ;
84+ this . _save ( RoomNotifs . ALL_MESSAGES ) ;
8585 } ,
8686
8787 _onClickMentions : function ( ) {
88- this . _save ( 'mentions_only' ) ;
88+ this . _save ( RoomNotifs . MENTIONS_ONLY ) ;
8989 } ,
9090
9191 _onClickMute : function ( ) {
92- this . _save ( 'mute' ) ;
92+ this . _save ( RoomNotifs . MUTE ) ;
9393 } ,
9494
9595 render : function ( ) {
9696 var alertMeClasses = classNames ( {
9797 'mx_NotificationStateContextMenu_field' : true ,
98- 'mx_NotificationStateContextMenu_fieldSet' : this . state . roomNotifState == 'all_messages_loud' ,
98+ 'mx_NotificationStateContextMenu_fieldSet' : this . state . roomNotifState == RoomNotifs . ALL_MESSAGES_LOUD ,
9999 } ) ;
100100
101101 var allNotifsClasses = classNames ( {
102102 'mx_NotificationStateContextMenu_field' : true ,
103- 'mx_NotificationStateContextMenu_fieldSet' : this . state . roomNotifState == 'all_messages' ,
103+ 'mx_NotificationStateContextMenu_fieldSet' : this . state . roomNotifState == RoomNotifs . ALL_MESSAGES ,
104104 } ) ;
105105
106106 var mentionsClasses = classNames ( {
107107 'mx_NotificationStateContextMenu_field' : true ,
108- 'mx_NotificationStateContextMenu_fieldSet' : this . state . roomNotifState == 'mentions_only' ,
108+ 'mx_NotificationStateContextMenu_fieldSet' : this . state . roomNotifState == RoomNotifs . MENTIONS_ONLY ,
109109 } ) ;
110110
111111 var muteNotifsClasses = classNames ( {
112112 'mx_NotificationStateContextMenu_field' : true ,
113- 'mx_NotificationStateContextMenu_fieldSet' : this . state . roomNotifState == 'mute' ,
113+ 'mx_NotificationStateContextMenu_fieldSet' : this . state . roomNotifState == RoomNotifs . MUTE ,
114114 } ) ;
115115
116116 return (
0 commit comments