@@ -36,14 +36,15 @@ module.exports = React.createClass({
36
36
} ,
37
37
38
38
render : function ( ) {
39
+ var DeviceVerifyButtons = sdk . getComponent ( 'elements.DeviceVerifyButtons' ) ;
39
40
var client = MatrixClientPeg . get ( ) ;
40
- var blacklistUnverified = ( client . getGlobalBlacklistUnverifiedDevices ( ) || room . getBlacklistUnverifiedDevices ( ) ) ;
41
+ var blacklistUnverified = client . getGlobalBlacklistUnverifiedDevices ( ) || this . props . room . getBlacklistUnverifiedDevices ( ) ;
41
42
var warning ;
42
43
if ( blacklistUnverified ) {
43
- warning = < h4 > You are currently blacklisting unverified devices; to send messages to these devices you must verify them.< h4 > ;
44
+ warning = < h4 > You are currently blacklisting unverified devices; to send messages to these devices you must verify them.</ h4 >
44
45
}
45
46
else {
46
- warning = < h4 > We strongly recommend you verify them before continuing.</ h4 > ;
47
+ warning = < h4 > We strongly recommend you verify them before continuing.</ h4 >
47
48
}
48
49
49
50
return (
@@ -54,27 +55,27 @@ module.exports = React.createClass({
54
55
< div className = "mx_Dialog_content" >
55
56
< h4 > This room contains unknown devices which have not been verified.</ h4 >
56
57
{ warning }
57
- < p > Unknown devices:
58
- < ul > {
59
- Object . keys ( this . props . devices ) . map ( userId => {
60
- return < li key = { userId } >
61
- < p > { userId } :</ p >
62
- < ul >
63
- {
64
- Object . keys ( this . props . devices [ userId ] ) . map ( deviceId => {
65
- var DeviceVerifyButtons = sdk . getComponent ( 'elements.DeviceVerifyButtons' ) ;
66
- var device = this . props . devices [ userId ] [ deviceId ] ;
67
- var buttons = < DeviceVerifyButtons device = { device } userId = { userId } / >
68
- return < li key = { deviceId } >
69
- { deviceId } ( { device . getDisplayName ( ) } ) { buttons }
70
- </ li >
71
- } )
72
- }
73
- </ ul >
74
- </ li >
75
- } )
76
- } </ ul >
77
- </ p >
58
+ Unknown devices:
59
+ < ul > {
60
+ Object . keys ( this . props . devices ) . map ( userId => {
61
+ return < li key = { userId } >
62
+ < p > { userId } :</ p >
63
+ < ul className = "mx_UnknownDeviceDialog_deviceList" >
64
+ {
65
+ Object . keys ( this . props . devices [ userId ] ) . map ( deviceId => {
66
+ var device = this . props . devices [ userId ] [ deviceId ] ;
67
+ var buttons = < DeviceVerifyButtons device = { device } userId = { userId } />
68
+ return < li key = { deviceId } >
69
+ { buttons }
70
+ { deviceId } < br />
71
+ { device . getDisplayName ( ) }
72
+ </ li >
73
+ } )
74
+ }
75
+ </ ul >
76
+ </ li >
77
+ } )
78
+ } </ ul >
78
79
</ div >
79
80
< div className = "mx_Dialog_buttons" >
80
81
< button className = "mx_Dialog_primary" onClick = { this . props . onFinished } autoFocus = { true } >
0 commit comments