()
| 73 | }; |
| 74 | |
| 75 | public initView() { |
| 76 | const { |
| 77 | builtInNotification, |
| 78 | NOTIFICATION_CLEAR_ALL, |
| 79 | NOTIFICATION_HIDE, |
| 80 | } = this.builtinService.getModules(); |
| 81 | |
| 82 | if (builtInNotification) { |
| 83 | const NotificationView = connect( |
| 84 | this.notificationService, |
| 85 | NotificationStatusBarView |
| 86 | ); |
| 87 | /* istanbul ignore next */ |
| 88 | const defaultNotification = { |
| 89 | ...builtInNotification, |
| 90 | actionBar: [NOTIFICATION_CLEAR_ALL, NOTIFICATION_HIDE].filter( |
| 91 | Boolean |
| 92 | ) as IActionBarItemProps[], |
| 93 | render: () => ( |
| 94 | <NotificationView |
| 95 | onClick={this.onClick} |
| 96 | onActionBarClick={this.onActionBarClick} |
| 97 | onCloseNotification={this.onCloseNotification} |
| 98 | /> |
| 99 | ), |
| 100 | }; |
| 101 | this.notificationService.setState({ |
| 102 | ...defaultNotification, |
| 103 | }); |
| 104 | this.statusBarService.add(defaultNotification, Float.right); |
| 105 | } |
| 106 | } |
| 107 | } |
nothing calls this directly
no test coverage detected