GUI: Versioned Storages - FileDiffPresenter: rename diff statuses similar to VS table commits preview
@@ -25,6 +25,12 @@ import 'highlight.js/styles/github.css';
import 'diff2html/bundles/css/diff2html.min.css';
import '../../../../../staticStyles/git-diff-presentation.css';
+const DIFF_TYPE_DICTIONARY = {
+ deleted: 'deleted',
+ created: 'created',
+ modified: 'changed'
+};
+
class FileDiffPresenter extends React.PureComponent {
state = {
rawHtml: undefined,
@@ -114,7 +120,7 @@ class FileDiffPresenter extends React.PureComponent {
<span
className={classNames(styles.type, styles[type.toLowerCase()])}
>
- {type}
+ {DIFF_TYPE_DICTIONARY[type] || type}
</span>
</div>
</div>
