mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 20:38:55 +03:00
SecurityUserSettingsTab: Put the event index settings behind the feature flag.
This commit is contained in:
parent
947ea9823d
commit
4aa0658ac8
1 changed files with 9 additions and 6 deletions
|
@ -254,12 +254,15 @@ export default class SecurityUserSettingsTab extends React.Component {
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
const eventIndex = (
|
let eventIndex;
|
||||||
<div className="mx_SettingsTab_section">
|
if (SettingsStore.isFeatureEnabled("feature_event_indexing")) {
|
||||||
<span className="mx_SettingsTab_subheading">{_t("Message search")}</span>
|
eventIndex = (
|
||||||
<EventIndexPanel />
|
<div className="mx_SettingsTab_section">
|
||||||
</div>
|
<span className="mx_SettingsTab_subheading">{_t("Message 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
|
||||||
|
|
Loading…
Reference in a new issue