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

pull/21833/head
Damir Jelić 2020-01-24 11:11:53 +01:00
parent 71024d1418
commit 128c0b7300
1 changed files with 3 additions and 3 deletions

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>