ManageEventIndexDialog: Use formatCount to format the message and room count.

This commit is contained in:
Damir Jelić 2020-01-24 11:11:53 +01:00
parent 71024d1418
commit 128c0b7300

View file

@ -20,7 +20,7 @@ import PropTypes from 'prop-types';
import { _t } from '../../../../languageHandler';
import Modal from '../../../../Modal';
import {formatBytes} from "../../../../utils/FormattingUtils";
import {formatBytes, formatCount} from "../../../../utils/FormattingUtils";
import EventIndexPeg from "../../../../indexing/EventIndexPeg";
import AccessibleButton from "../../../../components/views/elements/AccessibleButton";
@ -125,8 +125,8 @@ export default class ManageEventIndexDialog extends React.Component {
}
<div className='mx_SettingsTab_subsectionText'>
{_t("Space used:")} {formatBytes(this.state.eventIndexSize, 0)}<br />
{_t("Indexed messages:")} {this.state.eventCount}<br />
{_t("Number of rooms:")} {this.state.roomCount}<br />
{_t("Indexed messages:")} {formatCount(this.state.eventCount)}<br />
{_t("Number of rooms:")} {formatCount(this.state.roomCount)}<br />
{crawlerState}<br />
</div>
</div>