webpack/components/common/DeleteTableEntry.js in foreman_acd-0.5.0 vs webpack/components/common/DeleteTableEntry.js in foreman_acd-0.6.0
- old
+ new
@@ -2,10 +2,11 @@
import PropTypes from 'prop-types';
import {
Icon,
Button,
} from 'patternfly-react';
+import { translate as __ } from 'foremanReact/common/I18n';
const DeleteTableEntry = ({
hidden,
disabled,
onDeleteTableEntry,
@@ -18,12 +19,12 @@
return (
<span>
<Button
bsStyle="default"
disabled={disabled}
- onClick={() => window.confirm("Are you sure you wish to delete this item?") && onDeleteTableEntry(additionalData) }
+ onClick={() => window.confirm(__("Are you sure you wish to delete this item?")) && onDeleteTableEntry(additionalData) }
>
- <Icon type="pf" name="delete" title="delete entry" />
+ <Icon type="pf" name="delete" title={__("Delete entry")} />
</Button>
</span>
);
};