mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +08:00
EventIndexPanel: Use formatCountLong to format the event and room counts.
This commit is contained in:
parent
2d8477aaa6
commit
ddea7415c7
@ -20,7 +20,7 @@ import PropTypes from 'prop-types';
|
|||||||
import { _t } from '../../../../languageHandler';
|
import { _t } from '../../../../languageHandler';
|
||||||
|
|
||||||
import Modal from '../../../../Modal';
|
import Modal from '../../../../Modal';
|
||||||
import {formatBytes, formatCount} from "../../../../utils/FormattingUtils";
|
import {formatBytes, formatCountLong} from "../../../../utils/FormattingUtils";
|
||||||
import EventIndexPeg from "../../../../indexing/EventIndexPeg";
|
import EventIndexPeg from "../../../../indexing/EventIndexPeg";
|
||||||
import AccessibleButton from "../../../../components/views/elements/AccessibleButton";
|
import AccessibleButton from "../../../../components/views/elements/AccessibleButton";
|
||||||
|
|
||||||
@ -125,8 +125,8 @@ export default class ManageEventIndexDialog extends React.Component {
|
|||||||
}
|
}
|
||||||
<div className='mx_SettingsTab_subsectionText'>
|
<div className='mx_SettingsTab_subsectionText'>
|
||||||
{_t("Space used:")} {formatBytes(this.state.eventIndexSize, 0)}<br />
|
{_t("Space used:")} {formatBytes(this.state.eventIndexSize, 0)}<br />
|
||||||
{_t("Indexed messages:")} {formatCount(this.state.eventCount)}<br />
|
{_t("Indexed messages:")} {formatCountLong(this.state.eventCount)}<br />
|
||||||
{_t("Number of rooms:")} {formatCount(this.state.roomCount)}<br />
|
{_t("Number of rooms:")} {formatCountLong(this.state.roomCount)}<br />
|
||||||
{crawlerState}<br />
|
{crawlerState}<br />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -21,7 +21,7 @@ import * as sdk from '../../../index';
|
|||||||
import Modal from '../../../Modal';
|
import Modal from '../../../Modal';
|
||||||
import SettingsStore, {SettingLevel} from "../../../settings/SettingsStore";
|
import SettingsStore, {SettingLevel} from "../../../settings/SettingsStore";
|
||||||
import AccessibleButton from "../elements/AccessibleButton";
|
import AccessibleButton from "../elements/AccessibleButton";
|
||||||
import {formatBytes, formatCount} from "../../../utils/FormattingUtils";
|
import {formatBytes, formatCountLong} from "../../../utils/FormattingUtils";
|
||||||
import EventIndexPeg from "../../../indexing/EventIndexPeg";
|
import EventIndexPeg from "../../../indexing/EventIndexPeg";
|
||||||
|
|
||||||
export default class EventIndexPanel extends React.Component {
|
export default class EventIndexPanel extends React.Component {
|
||||||
@ -115,7 +115,8 @@ export default class EventIndexPanel extends React.Component {
|
|||||||
{_t( "Securely cache encrypted messages locally for them " +
|
{_t( "Securely cache encrypted messages locally for them " +
|
||||||
"to appear in search results, using ")
|
"to appear in search results, using ")
|
||||||
} {formatBytes(this.state.eventIndexSize, 0)}
|
} {formatBytes(this.state.eventIndexSize, 0)}
|
||||||
{_t( " to store messages from ")} {formatCount(this.state.roomCount)} {_t("rooms.")}
|
{_t( " to store messages from ")}
|
||||||
|
{formatCountLong(this.state.roomCount)} {_t("rooms.")}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<AccessibleButton kind="primary" onClick={this._onManage}>
|
<AccessibleButton kind="primary" onClick={this._onManage}>
|
||||||
|
Loading…
Reference in New Issue
Block a user