From 5609e47c28d9481d75bf73d153bf369bca987137 Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Wed, 28 Nov 2018 10:25:06 +0300 Subject: [PATCH] Fixed filters table update on language change --- client/src/components/Filters/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/src/components/Filters/index.js b/client/src/components/Filters/index.js index 4d73cd49..705c36c0 100644 --- a/client/src/components/Filters/index.js +++ b/client/src/components/Filters/index.js @@ -34,30 +34,30 @@ class Filters extends Component { }; columns = [{ - Header: this.props.t('enabled_table_header'), + Header: enabled_table_header, accessor: 'enabled', Cell: this.renderCheckbox, width: 90, className: 'text-center', }, { - Header: this.props.t('name_table_header'), + Header: name_table_header, accessor: 'name', Cell: ({ value }) => (
{value}
), }, { - Header: this.props.t('filter_url_table_header'), + Header: filter_url_table_header, accessor: 'url', Cell: ({ value }) => (
{value}
), }, { - Header: this.props.t('rules_count_table_header'), + Header: rules_count_table_header, accessor: 'rulesCount', className: 'text-center', Cell: props => props.value.toLocaleString(), }, { - Header: this.props.t('last_time_updated_table_header'), + Header: last_time_updated_table_header, accessor: 'lastUpdated', className: 'text-center', }, { - Header: this.props.t('actions_table_header'), + Header: actions_table_header, accessor: 'url', Cell: ({ value }) => ( this.props.removeFilter(value)}/>), className: 'text-center',