|
|
|
@ -95,7 +95,7 @@ export class InAppNotificationCenterComponent implements OnInit { |
|
|
|
|
|
|
|
|
|
text = { |
|
|
|
|
no_notification: this.I18n.t('js.notifications.center.empty_state.no_notification'), |
|
|
|
|
no_notification_with_current_filter_project: this.I18n.t('js.notifications.center.empty_state.no_notification_with_current_filter'), |
|
|
|
|
no_notification_with_current_filter_project: this.I18n.t('js.notifications.center.empty_state.no_notification_with_current_project_filter'), |
|
|
|
|
no_notification_with_current_filter: this.I18n.t('js.notifications.center.empty_state.no_notification_with_current_filter', { filter: this.selectedFilter }), |
|
|
|
|
no_selection: this.I18n.t('js.notifications.center.empty_state.no_selection'), |
|
|
|
|
change_notification_settings: this.I18n.t( |
|
|
|
@ -132,8 +132,9 @@ export class InAppNotificationCenterComponent implements OnInit { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
noNotificationText(hasNotifications:boolean, totalNotifications:number):string { |
|
|
|
|
return (!hasNotifications && totalNotifications > 0) |
|
|
|
|
? (this.uiRouterGlobals.params.filter === 'project' ? this.text.no_notification_with_current_filter_project : this.text.no_notification_with_current_filter) |
|
|
|
|
: this.text.no_notification; |
|
|
|
|
if (!(!hasNotifications && totalNotifications > 0)) { |
|
|
|
|
return this.text.no_notification; |
|
|
|
|
} |
|
|
|
|
return (this.uiRouterGlobals.params.filter === 'project' ? this.text.no_notification_with_current_filter_project : this.text.no_notification_with_current_filter); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|