From 32abfbbfc60642e1b6cdb5308518a557a88a15e7 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 19 Aug 2019 10:27:57 -0600 Subject: [PATCH] Rename functions --- src/components/views/settings/SetIdServer.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/views/settings/SetIdServer.js b/src/components/views/settings/SetIdServer.js index 096222f124..67ca11d04f 100644 --- a/src/components/views/settings/SetIdServer.js +++ b/src/components/views/settings/SetIdServer.js @@ -130,7 +130,7 @@ export default class SetIdServer extends React.Component { return !!this.state.idServer && !this.state.busy; }; - _continueTerms = (fullUrl) => { + _saveIdServer = (fullUrl) => { MatrixClientPeg.get().setIdentityServerUrl(fullUrl); localStorage.removeItem("mx_is_access_token"); localStorage.setItem("mx_is_url", fullUrl); @@ -138,7 +138,7 @@ export default class SetIdServer extends React.Component { this.setState({idServer: '', busy: false, error: null}); }; - _saveIdServer = async (e) => { + _checkIdServer = async (e) => { e.preventDefault(); this.setState({busy: true, checking: true, error: null}); @@ -174,13 +174,13 @@ export default class SetIdServer extends React.Component { button: _t("Continue"), onFinished: async (confirmed) => { if (!confirmed) return; - this._continueTerms(fullUrl); + this._saveIdServer(fullUrl); }, }); return; } - this._continueTerms(fullUrl); + this._saveIdServer(fullUrl); } catch (e) { console.error(e); errStr = _t("Terms of service not accepted or the identity server is invalid."); @@ -299,7 +299,7 @@ export default class SetIdServer extends React.Component { } return ( -
+ {sectionTitle} @@ -313,7 +313,7 @@ export default class SetIdServer extends React.Component { tooltipContent={this._getTooltip()} /> {_t("Change")} {discoSection}