@@ -81,9 +81,9 @@ const Notifications = ({ notificationAppData, showLeftMargin }) => {
8181 setAppName ( selectedAppName ) ;
8282 setNotificationData ( prevData => ( {
8383 ...prevData ,
84- ...{ notificationListStatus : RequestStatus . IDLE } ,
84+ ...{ notificationListStatus : appName === selectedAppName ? RequestStatus . SUCCESSFUL : RequestStatus . IN_PROGRESS } ,
8585 } ) ) ;
86- } , [ ] ) ;
86+ } , [ appName ] ) ;
8787
8888 const updateNotificationData = useCallback ( ( data ) => {
8989 setNotificationData ( prevData => ( {
@@ -150,13 +150,13 @@ const Notifications = ({ notificationAppData, showLeftMargin }) => {
150150 </ NotificationPopoverContext . Provider >
151151 </ Popover . Content >
152152 { 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 >
160160 ) }
161161 </ div >
162162 </ Popover >
@@ -178,18 +178,18 @@ const Notifications = ({ notificationAppData, showLeftMargin }) => {
178178 data-testid = "notification-bell-icon"
179179 />
180180 { 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 >
193193 ) }
194194 </ div >
195195 </ OverlayTrigger >
0 commit comments