EventIndexPanel: Move the panel from the preferences to the security tab.
parent
4913d579e3
commit
908a00a13d
|
@ -138,8 +138,7 @@ export default class EventIndexPanel extends React.Component {
|
||||||
|
|
||||||
if (EventIndexPeg.get() !== null) {
|
if (EventIndexPeg.get() !== null) {
|
||||||
eventIndexingSettings = (
|
eventIndexingSettings = (
|
||||||
<div className="mx_SettingsTab_section">
|
<div>
|
||||||
<span className="mx_SettingsTab_subheading">{_t("Encrypted search")}</span>
|
|
||||||
{
|
{
|
||||||
_t( "Riot is securely caching encrypted messages locally for them" +
|
_t( "Riot is securely caching encrypted messages locally for them" +
|
||||||
"to appear in search results:"
|
"to appear in search results:"
|
||||||
|
@ -165,6 +164,17 @@ export default class EventIndexPanel extends React.Component {
|
||||||
onChange={this._onCrawlerSleepTimeChange} />
|
onChange={this._onCrawlerSleepTimeChange} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
eventIndexingSettings = (
|
||||||
|
<div>
|
||||||
|
{
|
||||||
|
_t( "Riot can't securely cache encrypted messages locally" +
|
||||||
|
"while running in a web browser. Use Riot Desktop for" +
|
||||||
|
"encrypted messages to appear in search results."
|
||||||
|
)
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return eventIndexingSettings;
|
return eventIndexingSettings;
|
||||||
|
|
|
@ -144,8 +144,6 @@ export default class PreferencesUserSettingsTab extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const EventIndexPanel = sdk.getComponent('views.settings.EventIndexPanel');
|
|
||||||
|
|
||||||
let autoLaunchOption = null;
|
let autoLaunchOption = null;
|
||||||
if (this.state.autoLaunchSupported) {
|
if (this.state.autoLaunchSupported) {
|
||||||
autoLaunchOption = <LabelledToggleSwitch
|
autoLaunchOption = <LabelledToggleSwitch
|
||||||
|
@ -174,8 +172,6 @@ export default class PreferencesUserSettingsTab extends React.Component {
|
||||||
<div className="mx_SettingsTab mx_PreferencesUserSettingsTab">
|
<div className="mx_SettingsTab mx_PreferencesUserSettingsTab">
|
||||||
<div className="mx_SettingsTab_heading">{_t("Preferences")}</div>
|
<div className="mx_SettingsTab_heading">{_t("Preferences")}</div>
|
||||||
|
|
||||||
<EventIndexPanel />
|
|
||||||
|
|
||||||
<div className="mx_SettingsTab_section">
|
<div className="mx_SettingsTab_section">
|
||||||
<span className="mx_SettingsTab_subheading">{_t("Composer")}</span>
|
<span className="mx_SettingsTab_subheading">{_t("Composer")}</span>
|
||||||
{this._renderGroup(PreferencesUserSettingsTab.COMPOSER_SETTINGS)}
|
{this._renderGroup(PreferencesUserSettingsTab.COMPOSER_SETTINGS)}
|
||||||
|
|
|
@ -242,6 +242,7 @@ export default class SecurityUserSettingsTab extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
const DevicesPanel = sdk.getComponent('views.settings.DevicesPanel');
|
const DevicesPanel = sdk.getComponent('views.settings.DevicesPanel');
|
||||||
const SettingsFlag = sdk.getComponent('views.elements.SettingsFlag');
|
const SettingsFlag = sdk.getComponent('views.elements.SettingsFlag');
|
||||||
|
const EventIndexPanel = sdk.getComponent('views.settings.EventIndexPanel');
|
||||||
|
|
||||||
const KeyBackupPanel = sdk.getComponent('views.settings.KeyBackupPanel');
|
const KeyBackupPanel = sdk.getComponent('views.settings.KeyBackupPanel');
|
||||||
const keyBackup = (
|
const keyBackup = (
|
||||||
|
@ -253,6 +254,13 @@ export default class SecurityUserSettingsTab extends React.Component {
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const eventIndex = (
|
||||||
|
<div className="mx_SettingsTab_section">
|
||||||
|
<span className="mx_SettingsTab_subheading">{_t("Encrypted search")}</span>
|
||||||
|
<EventIndexPanel />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
|
||||||
// XXX: There's no such panel in the current cross-signing designs, but
|
// XXX: There's no such panel in the current cross-signing designs, but
|
||||||
// it's useful to have for testing the feature. If there's no interest
|
// it's useful to have for testing the feature. If there's no interest
|
||||||
// in having advanced details here once all flows are implemented, we
|
// in having advanced details here once all flows are implemented, we
|
||||||
|
@ -281,6 +289,7 @@ export default class SecurityUserSettingsTab extends React.Component {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{keyBackup}
|
{keyBackup}
|
||||||
|
{eventIndex}
|
||||||
{crossSigning}
|
{crossSigning}
|
||||||
{this._renderCurrentDeviceInfo()}
|
{this._renderCurrentDeviceInfo()}
|
||||||
<div className='mx_SettingsTab_section'>
|
<div className='mx_SettingsTab_section'>
|
||||||
|
|
|
@ -555,15 +555,15 @@
|
||||||
"Disable Notifications": "Disable Notifications",
|
"Disable Notifications": "Disable Notifications",
|
||||||
"Enable Notifications": "Enable Notifications",
|
"Enable Notifications": "Enable Notifications",
|
||||||
"Message search for encrypted rooms is disabled.": "Message search for encrypted rooms is disabled.",
|
"Message search for encrypted rooms is disabled.": "Message search for encrypted rooms is disabled.",
|
||||||
"Not currently downloading messages for any room.": "Not currently downloading messages for any room.",
|
"Not downloading messages for any room.": "Not downloading messages for any room.",
|
||||||
"Downloading mesages for %(currentRoom)s.": "Downloading mesages for %(currentRoom)s.",
|
"Downloading mesages for %(currentRoom)s.": "Downloading mesages for %(currentRoom)s.",
|
||||||
"Encrypted search": "Encrypted search",
|
|
||||||
"Riot is securely caching encrypted messages locally for themto appear in search results:": "Riot is securely caching encrypted messages locally for themto appear in search results:",
|
"Riot is securely caching encrypted messages locally for themto appear in search results:": "Riot is securely caching encrypted messages locally for themto appear in search results:",
|
||||||
"Space used:": "Space used:",
|
"Space used:": "Space used:",
|
||||||
"Indexed messages:": "Indexed messages:",
|
"Indexed messages:": "Indexed messages:",
|
||||||
"Number of rooms:": "Number of rooms:",
|
"Number of rooms:": "Number of rooms:",
|
||||||
"Download and index encrypted messages": "Download and index encrypted messages",
|
"Download and index encrypted messages": "Download and index encrypted messages",
|
||||||
"Message downloading sleep time(ms)": "Message downloading sleep time(ms)",
|
"Message downloading sleep time(ms)": "Message downloading sleep time(ms)",
|
||||||
|
"Riot can't securely cache encrypted messages locallywhile running in a web browser. Use Riot Desktop forencrypted messages to appear in search results.": "Riot can't securely cache encrypted messages locallywhile running in a web browser. Use Riot Desktop forencrypted messages to appear in search results.",
|
||||||
"Connecting to integration manager...": "Connecting to integration manager...",
|
"Connecting to integration manager...": "Connecting to integration manager...",
|
||||||
"Cannot connect to integration manager": "Cannot connect to integration manager",
|
"Cannot connect to integration manager": "Cannot connect to integration manager",
|
||||||
"The integration manager is offline or it cannot reach your homeserver.": "The integration manager is offline or it cannot reach your homeserver.",
|
"The integration manager is offline or it cannot reach your homeserver.": "The integration manager is offline or it cannot reach your homeserver.",
|
||||||
|
@ -759,6 +759,7 @@
|
||||||
"Accept all %(invitedRooms)s invites": "Accept all %(invitedRooms)s invites",
|
"Accept all %(invitedRooms)s invites": "Accept all %(invitedRooms)s invites",
|
||||||
"Reject all %(invitedRooms)s invites": "Reject all %(invitedRooms)s invites",
|
"Reject all %(invitedRooms)s invites": "Reject all %(invitedRooms)s invites",
|
||||||
"Key backup": "Key backup",
|
"Key backup": "Key backup",
|
||||||
|
"Encrypted search": "Encrypted search",
|
||||||
"Cross-signing": "Cross-signing",
|
"Cross-signing": "Cross-signing",
|
||||||
"Security & Privacy": "Security & Privacy",
|
"Security & Privacy": "Security & Privacy",
|
||||||
"Devices": "Devices",
|
"Devices": "Devices",
|
||||||
|
|
Loading…
Reference in New Issue