File tree 2 files changed +24
-1
lines changed
2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,18 @@ See the License for the specific language governing permissions and
14
14
limitations under the License.
15
15
*/
16
16
17
+ .mx_MatrixChat_splash {
18
+ position : relative;
19
+ height : 100% ;
20
+ }
21
+
22
+ .mx_MatrixChat_splashButtons {
23
+ text-align : center;
24
+ width : 100% ;
25
+ position : absolute;
26
+ bottom : 30px ;
27
+ }
28
+
17
29
.mx_MatrixChat_wrapper {
18
30
display : -webkit-box;
19
31
display : -moz-box;
Original file line number Diff line number Diff line change @@ -61,6 +61,14 @@ module.exports = React.createClass({
61
61
} ) ;
62
62
} ,
63
63
64
+ onLogoutClick : function ( event ) {
65
+ dis . dispatch ( {
66
+ action : 'logout'
67
+ } ) ;
68
+ event . stopPropagation ( ) ;
69
+ event . preventDefault ( ) ;
70
+ } ,
71
+
64
72
handleResize : function ( e ) {
65
73
var hideLhsThreshold = 1000 ;
66
74
var showLhsThreshold = 1000 ;
@@ -157,7 +165,10 @@ module.exports = React.createClass({
157
165
} else if ( this . state . logged_in ) {
158
166
var Spinner = sdk . getComponent ( 'atoms.Spinner' ) ;
159
167
return (
160
- < Spinner />
168
+ < div className = "mx_MatrixChat_splash" >
169
+ < Spinner />
170
+ < a href = "#" className = "mx_MatrixChat_splashButtons" onClick = { this . onLogoutClick } > Logout</ a >
171
+ </ div >
161
172
) ;
162
173
} else if ( this . state . screen == 'register' ) {
163
174
return (
You can’t perform that action at this time.
0 commit comments