mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
EventIndex: Fix some lint errors.
This commit is contained in:
parent
a5a149933a
commit
381fe95f67
3 changed files with 1 additions and 10 deletions
|
@ -21,9 +21,6 @@ import dis from "../../../../dispatcher";
|
|||
import { _t } from '../../../../languageHandler';
|
||||
|
||||
import SettingsStore, {SettingLevel} from "../../../../settings/SettingsStore";
|
||||
import LabelledToggleSwitch from "../../../../components/views/elements/LabelledToggleSwitch";
|
||||
import Field from "../../../../components/views/elements/Field";
|
||||
import {formatBytes} from "../../../../utils/FormattingUtils";
|
||||
import EventIndexPeg from "../../../../indexing/EventIndexPeg";
|
||||
import AccessibleButton from "../../../../components/views/elements/AccessibleButton";
|
||||
|
||||
|
@ -50,7 +47,6 @@ export default class ManageEventIndex extends React.Component {
|
|||
disabling: true,
|
||||
});
|
||||
|
||||
const eventIndex = EventIndexPeg.get();
|
||||
await SettingsStore.setValue('enableEventIndexing', null, SettingLevel.DEVICE, false);
|
||||
await EventIndexPeg.deleteEventIndex();
|
||||
this.props.onFinished();
|
||||
|
@ -59,7 +55,7 @@ export default class ManageEventIndex extends React.Component {
|
|||
|
||||
render() {
|
||||
const BaseDialog = sdk.getComponent('views.dialogs.BaseDialog');
|
||||
const DialogButtons = sdk.getComponent("views.elements.DialogButtons");
|
||||
const InlineSpinner = sdk.getComponent('elements.InlineSpinner');
|
||||
|
||||
return (
|
||||
<BaseDialog className='mx_ManageEventIndexDialog'
|
||||
|
|
|
@ -20,9 +20,6 @@ import PropTypes from 'prop-types';
|
|||
import { _t } from '../../../../languageHandler';
|
||||
|
||||
import Modal from '../../../../Modal';
|
||||
import SettingsStore, {SettingLevel} from "../../../../settings/SettingsStore";
|
||||
import LabelledToggleSwitch from "../../../../components/views/elements/LabelledToggleSwitch";
|
||||
import Field from "../../../../components/views/elements/Field";
|
||||
import {formatBytes} from "../../../../utils/FormattingUtils";
|
||||
import EventIndexPeg from "../../../../indexing/EventIndexPeg";
|
||||
import AccessibleButton from "../../../../components/views/elements/AccessibleButton";
|
||||
|
|
|
@ -16,8 +16,6 @@ limitations under the License.
|
|||
|
||||
import PlatformPeg from "../PlatformPeg";
|
||||
import {MatrixClientPeg} from "../MatrixClientPeg";
|
||||
import SettingsStore from '../settings/SettingsStore';
|
||||
import {SettingLevel} from "../settings/SettingsStore";
|
||||
import {sleep} from "../utils/promise";
|
||||
import {EventEmitter} from "events";
|
||||
|
||||
|
|
Loading…
Reference in a new issue