From 19a267e8b56e23c11f560034f14962316442ef02 Mon Sep 17 00:00:00 2001 From: Justin Kambic Date: Mon, 23 Sep 2019 16:30:24 -0400 Subject: [PATCH] [Logstash] Remove formatted message component in favor of i18n translate function (#45658) * Remove formatted message component in favor for i18n translate function. * Update broken test snapshot. --- .../__snapshots__/pipelines_table.test.js.snap | 6 +----- .../public/components/pipeline_list/pipelines_table.js | 7 +------ 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/x-pack/legacy/plugins/logstash/public/components/pipeline_list/__snapshots__/pipelines_table.test.js.snap b/x-pack/legacy/plugins/logstash/public/components/pipeline_list/__snapshots__/pipelines_table.test.js.snap index a7432416537a6..bea9014c28d67 100644 --- a/x-pack/legacy/plugins/logstash/public/components/pipeline_list/__snapshots__/pipelines_table.test.js.snap +++ b/x-pack/legacy/plugins/logstash/public/components/pipeline_list/__snapshots__/pipelines_table.test.js.snap @@ -79,11 +79,7 @@ exports[`PipelinesTable component renders component as expected 1`] = ` Object { "field": "id", "multiSelect": false, - "name": , + "name": "Filter by ID", "options": Array [ Object { "name": "testPipeline", diff --git a/x-pack/legacy/plugins/logstash/public/components/pipeline_list/pipelines_table.js b/x-pack/legacy/plugins/logstash/public/components/pipeline_list/pipelines_table.js index d77fc25f12986..8f9ec618485f3 100644 --- a/x-pack/legacy/plugins/logstash/public/components/pipeline_list/pipelines_table.js +++ b/x-pack/legacy/plugins/logstash/public/components/pipeline_list/pipelines_table.js @@ -152,12 +152,7 @@ function PipelinesTableUi({ { type: 'field_value_selection', field: 'id', - name: ( - - ), + name: i18n.translate('xpack.logstash.pipelinesTable.filterByIdLabel', { defaultMessage: 'Filter by ID' }), multiSelect: false, options: pipelines.map(({ id }) => { return {