2015-12-01 17:48:51 +01:00
|
|
|
/*
|
2016-01-07 05:17:56 +01:00
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
2017-10-20 14:48:00 +02:00
|
|
|
Copyright 2017 New Vector Ltd
|
2015-12-01 17:48:51 +01:00
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
var React = require("react");
|
2017-05-31 17:38:51 +02:00
|
|
|
var sanitizeHtml = require("sanitize-html");
|
2017-05-25 12:39:56 +02:00
|
|
|
import { _t } from 'matrix-react-sdk/lib/languageHandler';
|
2015-12-01 17:48:51 +01:00
|
|
|
|
|
|
|
module.exports = React.createClass({
|
|
|
|
displayName: 'VectorCustomServerDialog',
|
2015-12-01 19:31:13 +01:00
|
|
|
statics: {
|
|
|
|
replaces: 'CustomServerDialog',
|
|
|
|
},
|
2015-12-01 17:48:51 +01:00
|
|
|
|
|
|
|
render: function() {
|
|
|
|
return (
|
|
|
|
<div className="mx_ErrorDialog">
|
2016-01-13 16:36:57 +01:00
|
|
|
<div className="mx_Dialog_title">
|
2017-05-23 15:12:53 +02:00
|
|
|
{ _t('Custom Server Options') }
|
2015-12-01 17:48:51 +01:00
|
|
|
</div>
|
|
|
|
<div className="mx_Dialog_content">
|
2017-10-20 14:48:00 +02:00
|
|
|
<span dangerouslySetInnerHTML={{__html: sanitizeHtml(_t(
|
|
|
|
"You can use the custom server options to sign into other Matrix "+
|
|
|
|
"servers by specifying a different Home server URL.<br/>This allows "+
|
|
|
|
"you to use Riot with an existing Matrix account on a different home "+
|
|
|
|
"server.<br/><br/>You can also set a custom identity server but you won't "+
|
|
|
|
"be able to invite users by email address, or be invited by email address yourself.",
|
|
|
|
))}} />
|
2015-12-01 17:48:51 +01:00
|
|
|
</div>
|
|
|
|
<div className="mx_Dialog_buttons">
|
|
|
|
<button onClick={this.props.onFinished} autoFocus={true}>
|
2017-05-23 15:12:53 +02:00
|
|
|
{ _t('Dismiss') }
|
2015-12-01 17:48:51 +01:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
});
|