webpack/scenes/RedHatRepositories/components/Search.js in katello-4.5.0.rc1 vs webpack/scenes/RedHatRepositories/components/Search.js in katello-4.5.0.rc2
- old
+ new
@@ -1,10 +1,10 @@
/* eslint-disable import/no-extraneous-dependencies */
import React, { Component } from 'react';
import { DropdownButton, MenuItem } from 'patternfly-react';
import PropTypes from 'prop-types';
-
+import { translate as __ } from 'foremanReact/common/I18n';
import '../index.scss';
import Search from '../../../components/Search/index';
import { orgId } from '../../../services/api';
class RepositorySearch extends Component {
@@ -12,20 +12,20 @@
super(props);
this.dropDownItems = [
{
key: 'available',
endpoint: 'repository_sets',
- title: 'Available',
+ title: __('Available'),
},
{
key: 'enabled',
endpoint: 'enabled_repositories',
- title: 'Enabled',
+ title: __('Enabled'),
},
{
key: 'both',
endpoint: false,
- title: 'Both',
+ title: __('Both'),
},
];
this.state = { searchList: this.dropDownItems[0] };
this.onSearch = this.onSearch.bind(this);
this.getAutoCompleteParams = this.getAutoCompleteParams.bind(this);