File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
ts/components/dialog/conversationSettings/pages/notifications Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,8 @@ export const NotificationsPage = () => {
103
103
return null ;
104
104
}
105
105
106
+ const noChanges = notificationSelected === notification ;
107
+
106
108
return (
107
109
< StyledScrollContainer style = { { position : 'relative' } } >
108
110
< Flex $container = { true } $flexDirection = { 'column' } $alignItems = { 'center' } >
@@ -131,7 +133,11 @@ export const NotificationsPage = () => {
131
133
</ PanelButtonGroup >
132
134
< ButtonSpacer />
133
135
< StyledButtonContainer >
134
- < SessionButton onClick = { handleSetNotifications } dataTestId = { 'notifications-set-button' } >
136
+ < SessionButton
137
+ onClick = { handleSetNotifications }
138
+ dataTestId = { 'notifications-set-button' }
139
+ disabled = { noChanges }
140
+ >
135
141
{ localize ( 'set' ) }
136
142
</ SessionButton >
137
143
</ StyledButtonContainer >
You can’t perform that action at this time.
0 commit comments