Skip to content

Commit a2b28b8

Browse files
committed
Add CustomServerDialog for vector
1 parent 8d31f72 commit a2b28b8

2 files changed

Lines changed: 56 additions & 2 deletions

File tree

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/*
2+
Copyright 2015 OpenMarket Ltd
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
var React = require("react");
18+
19+
module.exports = React.createClass({
20+
displayName: 'VectorCustomServerDialog',
21+
22+
render: function() {
23+
console.log("State: %s", JSON.stringify(this.state));
24+
console.log("Props: %s", JSON.stringify(this.props));
25+
return (
26+
<div className="mx_ErrorDialog">
27+
<div className="mx_ErrorDialogTitle">
28+
Custom Server Options
29+
</div>
30+
<div className="mx_Dialog_content">
31+
<span>
32+
You can use the custom server options to log into other Matrix
33+
servers by specifying a different Home server URL.
34+
<br/>
35+
This allows you to use Vector with an existing Matrix account on
36+
a different Home server.
37+
<br/>
38+
<br/>
39+
You can also set a custom Identity server but this will affect
40+
people&#39;s ability to find you if you use a server in a group other
41+
than the main Matrix.org group.
42+
</span>
43+
</div>
44+
<div className="mx_Dialog_buttons">
45+
<button onClick={this.props.onFinished} autoFocus={true}>
46+
Dismiss
47+
</button>
48+
</div>
49+
</div>
50+
);
51+
}
52+
});

‎src/skins/vector/skindex.js‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ limitations under the License.
2424
var skin = {};
2525

2626
// Vector-specific stuff
27+
skin['login.LoginFooter'] = require('../../components/views/login/VectorLoginFooter');
28+
skin['login.LoginHeader'] = require('../../components/views/login/VectorLoginHeader');
29+
skin['login.CustomServerDialog'] = require("../../components/views/login/VectorCustomServerDialog");
30+
2731
skin['elements.Spinner'] = require('../../components/views/elements/Spinner');
2832
skin['elements.ImageView'] = require('../../components/views/elements/ImageView');
2933
skin['messages.MessageTimestamp'] = require('../../components/views/messages/MessageTimestamp');
@@ -36,8 +40,6 @@ skin['rooms.RoomDropTarget'] = require('../../components/views/rooms/RoomDropTar
3640
skin['rooms.RoomTooltip'] = require('../../components/views/rooms/RoomTooltip');
3741
skin['rooms.SearchBar'] = require('../../components/views/rooms/SearchBar');
3842
skin['globals.MatrixToolbar'] = require('../../components/views/globals/MatrixToolbar');
39-
skin['login.LoginFooter'] = require('../../components/views/login/VectorLoginFooter');
40-
skin['login.LoginHeader'] = require('../../components/views/login/VectorLoginHeader');
4143
skin['structures.BottomLeftMenu'] = require('../../components/structures/BottomLeftMenu');
4244
skin['structures.LeftPanel'] = require('../../components/structures/LeftPanel');
4345
skin['structures.RightPanel'] = require('../../components/structures/RightPanel');

0 commit comments

Comments
 (0)