ManageEventIndexDialog: Show how many rooms are done instead being processed.
This commit is contained in:
parent
bff3f3e632
commit
364899b27d
2 changed files with 5 additions and 3 deletions
|
@ -150,6 +150,8 @@ export default class ManageEventIndexDialog extends React.Component {
|
||||||
|
|
||||||
const Field = sdk.getComponent('views.elements.Field');
|
const Field = sdk.getComponent('views.elements.Field');
|
||||||
|
|
||||||
|
const doneRooms = Math.max(0, (this.state.roomCount - this.state.crawlingRoomsCount));
|
||||||
|
|
||||||
const eventIndexingSettings = (
|
const eventIndexingSettings = (
|
||||||
<div>
|
<div>
|
||||||
{
|
{
|
||||||
|
@ -160,8 +162,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:")} {formatCountLong(this.state.eventCount)}<br />
|
{_t("Indexed messages:")} {formatCountLong(this.state.eventCount)}<br />
|
||||||
{_t("Indexed rooms:")} {_t("%(crawlingRooms)s out of %(totalRooms)s", {
|
{_t("Indexed rooms:")} {_t("%(doneRooms)s out of %(totalRooms)s", {
|
||||||
crawlingRooms: formatCountLong(this.state.crawlingRoomsCount),
|
doneRooms: formatCountLong(doneRooms),
|
||||||
totalRooms: formatCountLong(this.state.roomCount),
|
totalRooms: formatCountLong(this.state.roomCount),
|
||||||
})} <br />
|
})} <br />
|
||||||
{crawlerState}<br />
|
{crawlerState}<br />
|
||||||
|
|
|
@ -2136,7 +2136,7 @@
|
||||||
"Space used:": "Space used:",
|
"Space used:": "Space used:",
|
||||||
"Indexed messages:": "Indexed messages:",
|
"Indexed messages:": "Indexed messages:",
|
||||||
"Indexed rooms:": "Indexed rooms:",
|
"Indexed rooms:": "Indexed rooms:",
|
||||||
"%(crawlingRooms)s out of %(totalRooms)s": "%(crawlingRooms)s out of %(totalRooms)s",
|
"%(doneRooms)s out of %(totalRooms)s": "%(doneRooms)s out of %(totalRooms)s",
|
||||||
"Message downloading sleep time(ms)": "Message downloading sleep time(ms)",
|
"Message downloading sleep time(ms)": "Message downloading sleep time(ms)",
|
||||||
"Failed to set direct chat tag": "Failed to set direct chat tag",
|
"Failed to set direct chat tag": "Failed to set direct chat tag",
|
||||||
"Failed to remove tag %(tagName)s from room": "Failed to remove tag %(tagName)s from room",
|
"Failed to remove tag %(tagName)s from room": "Failed to remove tag %(tagName)s from room",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue