File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 11import isEmpty from 'lodash/isEmpty' ;
2+ import filter from 'lodash/filter' ;
3+ import some from 'lodash/some' ;
24
35import { Environment } from '@ovh-ux/manager-config' ;
46import { ANIMATED_STATUS } from './constants' ;
@@ -47,7 +49,7 @@ export default class NotificationsCtrl {
4749 }
4850
4951 static shouldAnimateIcon ( sublinks ) {
50- return sublinks . some ( ( { isActive, level } ) => ANIMATED_STATUS . includes ( level ) && isActive ) ;
52+ return some ( sublinks , ( { isActive, level } ) => ANIMATED_STATUS . includes ( level ) && isActive ) ;
5153 }
5254
5355
@@ -67,8 +69,10 @@ export default class NotificationsCtrl {
6769 type : 'action' ,
6870 } ) ;
6971
70- const notificationsToAcknowledge = this . sublinks
71- . filter ( ( { acknowledged, isActive } ) => ! acknowledged && isActive ) ;
72+ const notificationsToAcknowledge = filter (
73+ this . sublinks ,
74+ ( { acknowledged, isActive } ) => ! acknowledged && isActive ,
75+ ) ;
7276
7377 if ( ! isEmpty ( notificationsToAcknowledge ) ) {
7478 return this . NavbarNotifications . updateNotifications ( {
You can’t perform that action at this time.
0 commit comments