diff --git a/public/components/main/main_utils.tsx b/public/components/main/main_utils.tsx index 95ddf07f..f19984f6 100644 --- a/public/components/main/main_utils.tsx +++ b/public/components/main/main_utils.tsx @@ -97,6 +97,7 @@ export const addReportDefinitionsTableContent = (data: any) => { for (let index = 0; index < data.length; ++index) { let item = data[index]; let reportDefinition = item._source.report_definition; + let reportNotification = reportDefinition.delivery; let reportParams = reportDefinition.report_params; let trigger = reportDefinition.trigger; let triggerParams = trigger.trigger_params; @@ -113,6 +114,8 @@ export const addReportDefinitionsTableContent = (data: any) => { ? `\u2014` : triggerParams.schedule_type, // e.g. recurring, cron based status: reportDefinition.status, + notificationsEnabled: + reportNotification.configIds.length > 0 ? 'Enabled' : 'Disabled' }; reportDefinitionsTableItems.push(reportDefinitionsTableEntry); } diff --git a/public/components/main/report_definitions_table.tsx b/public/components/main/report_definitions_table.tsx index b0d255b3..fabf0275 100644 --- a/public/components/main/report_definitions_table.tsx +++ b/public/components/main/report_definitions_table.tsx @@ -173,6 +173,15 @@ export function ReportDefinitions(props) { return {readable}; }, }, + { + field: 'notificationsEnabled', + name: i18n.translate( + 'opensearch.reports.reportDefinitionsTable.columns.notificationsEnabled', + { defaultMessage: 'Notifications' } + ), + sortable: true, + truncateText: false, + }, { field: 'status', name: i18n.translate(