You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
1.2 KiB
2 lines
1.2 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{1329:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return g}));var s=t(83),a=t.n(s),i=t(82),o=t.n(i),r=t(86),l=t(85),d=t.n(l),p=t(88),c=t(84),u=t(89),h=t(201),m=t(95),b=t(97);class g extends o.a.Component{constructor(e){super(e),a()(this,"_onDisable",async()=>{this.setState({disabling:!0}),await u.a.setValue("enableEventIndexing",null,b.a.DEVICE,!1),await h.a.deleteEventIndex(),this.props.onFinished(),p.a.fire(m.a.ViewUserSettings)}),this.state={disabling:!1}}render(){const e=r.getComponent("views.dialogs.BaseDialog"),n=r.getComponent("elements.Spinner"),t=r.getComponent("views.elements.DialogButtons");return o.a.createElement(e,{onFinished:this.props.onFinished,title:Object(c.a)("Are you sure?")},Object(c.a)("If disabled, messages from encrypted rooms won't appear in search results."),this.state.disabling?o.a.createElement(n,null):o.a.createElement("div",null),o.a.createElement(t,{primaryButton:Object(c.a)("Disable"),onPrimaryButtonClick:this._onDisable,primaryButtonClass:"danger",cancelButtonClass:"warning",onCancel:this.props.onFinished,disabled:this.state.disabling}))}}a()(g,"propTypes",{onFinished:d.a.func.isRequired})}}]);
|
|
//# sourceMappingURL=26.js.map
|