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([[27],{1404:function(e,n,t){"use strict";t.r(n),t.d(n,"default",(function(){return g}));var s=t(18),a=t.n(s),i=t(86),o=t.n(i),r=t(89),l=t(90),d=t.n(l),p=t(92),c=t(87),u=t(93),b=t(233),h=t(99),m=t(101);class g extends o.a.Component{constructor(e){super(e),a()(this,"_onDisable",async()=>{this.setState({disabling:!0}),await u.b.setValue("enableEventIndexing",null,m.a.DEVICE,!1),await b.a.deleteEventIndex(),this.props.onFinished(),p.a.fire(h.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=27.js.map
|