@@ -81,9 +81,9 @@ const Notifications = ({ notificationAppData, showLeftMargin }) => {
81
81
setAppName ( selectedAppName ) ;
82
82
setNotificationData ( prevData => ( {
83
83
...prevData ,
84
- ...{ notificationListStatus : RequestStatus . IDLE } ,
84
+ ...{ notificationListStatus : appName === selectedAppName ? RequestStatus . SUCCESSFUL : RequestStatus . IN_PROGRESS } ,
85
85
} ) ) ;
86
- } , [ ] ) ;
86
+ } , [ appName ] ) ;
87
87
88
88
const updateNotificationData = useCallback ( ( data ) => {
89
89
setNotificationData ( prevData => ( {
@@ -150,13 +150,13 @@ const Notifications = ({ notificationAppData, showLeftMargin }) => {
150
150
</ NotificationPopoverContext . Provider >
151
151
</ Popover . Content >
152
152
{ getConfig ( ) . NOTIFICATION_FEEDBACK_URL && (
153
- < Button
154
- onClick = { enableFeedback }
155
- variant = "warning"
156
- className = "notification-feedback-widget"
157
- >
158
- { intl . formatMessage ( messages . feedback ) }
159
- </ Button >
153
+ < Button
154
+ onClick = { enableFeedback }
155
+ variant = "warning"
156
+ className = "notification-feedback-widget"
157
+ >
158
+ { intl . formatMessage ( messages . feedback ) }
159
+ </ Button >
160
160
) }
161
161
</ div >
162
162
</ Popover >
@@ -178,18 +178,18 @@ const Notifications = ({ notificationAppData, showLeftMargin }) => {
178
178
data-testid = "notification-bell-icon"
179
179
/>
180
180
{ tabsCount ?. count > 0 && (
181
- < Bubble
182
- variant = "error"
183
- data-testid = "notification-count"
184
- className = { classNames ( 'notification-badge zindex-1 cursor-pointer p-1' , {
185
- 'notification-badge-unrounded mt-1' : tabsCount . count >= 10 ,
186
- 'notification-badge-rounded' : tabsCount . count < 10 ,
187
- } ) }
188
- onClick = { toggleNotificationTray }
189
- >
190
- { tabsCount . count >= 100 ? < div className = "d-flex" > 99< p className = "mb-0 plus-icon" > +</ p > </ div >
191
- : tabsCount . count }
192
- </ Bubble >
181
+ < Bubble
182
+ variant = "error"
183
+ data-testid = "notification-count"
184
+ className = { classNames ( 'notification-badge zindex-1 cursor-pointer p-1' , {
185
+ 'notification-badge-unrounded mt-1' : tabsCount . count >= 10 ,
186
+ 'notification-badge-rounded' : tabsCount . count < 10 ,
187
+ } ) }
188
+ onClick = { toggleNotificationTray }
189
+ >
190
+ { tabsCount . count >= 100 ? < div className = "d-flex" > 99< p className = "mb-0 plus-icon" > +</ p > </ div >
191
+ : tabsCount . count }
192
+ </ Bubble >
193
193
) }
194
194
</ div >
195
195
</ OverlayTrigger >
0 commit comments