diff --git a/src/components/header/AttachUrl.js b/src/components/header/AttachUrl.js index 189b8a348..bf43c29ef 100644 --- a/src/components/header/AttachUrl.js +++ b/src/components/header/AttachUrl.js @@ -1,4 +1,4 @@ -// import counterpart from 'counterpart'; +import counterpart from 'counterpart'; import React, { Component } from 'react'; import { connect } from 'react-redux'; @@ -58,18 +58,14 @@ class AttachUrl extends Component { fetchAttachments(); dispatch(addNotification( - // counterpart.translate('window.attachment.url.title'), - 'Attachment', - // counterpart.translate('window.attachment.url.success'), - 'URL has been added.', + counterpart.translate('window.attachment.url.title'), + counterpart.translate('window.attachment.url.success'), 5000, 'success', )); }).catch(() => { dispatch(addNotification( - // counterpart.translate('window.attachment.url.title'), - 'Attachment', - // counterpart.translate('window.attachment.url.error'), - 'URL could not be added!', + counterpart.translate('window.attachment.url.title'), + counterpart.translate('window.attachment.url.error'), 5000, 'error', )); }); @@ -89,21 +85,19 @@ class AttachUrl extends Component { className="panel-attachurl-header panel-attachurl-header-top" > - URL attachment - {/* {counterpart.translate('window.attachment.url.title')} */} + {counterpart.translate('window.attachment.url.title')}