@@ -88,87 +88,94 @@ const NetSimLogBrowserTable = React.createClass({
88
88
let columns = [ ] ;
89
89
90
90
columns . push ( {
91
+ property : 'timestamp' ,
91
92
header : {
92
93
label : 'Time' ,
93
94
transforms : [ sortable ] ,
94
95
props : { style : style . nowrap }
95
96
} ,
96
97
cell : {
97
- property : 'timestamp' ,
98
98
format : timeFormatter ,
99
99
props : { style : style . nowrapTd }
100
100
}
101
101
} ) ;
102
102
103
103
if ( this . props . teacherView ) {
104
104
columns . push ( {
105
+ property : 'sent-by' ,
105
106
header : {
106
107
label : 'Sent By' ,
107
108
transforms : [ sortable ] ,
108
109
props : { style : style . nowrap }
109
110
} ,
110
- cell : { property : 'sent-by' , props : { style : style . nowrapTd } }
111
+ cell : { props : { style : style . nowrapTd } }
111
112
} ) ;
112
113
}
113
114
114
115
columns . push ( {
116
+ property : 'logged-by' ,
115
117
header : {
116
118
label : 'Logged By' ,
117
119
transforms : [ sortable ] ,
118
120
props : { style : style . nowrap }
119
121
} ,
120
- cell : { property : 'logged-by' , props : { style : style . nowrapTd } }
122
+ cell : { props : { style : style . nowrapTd } }
121
123
} ) ;
122
124
123
125
columns . push ( {
126
+ property : 'status' ,
124
127
header : {
125
128
label : 'Status' ,
126
129
transforms : [ sortable ] ,
127
130
props : { style : style . nowrap }
128
131
} ,
129
- cell : { property : 'status' , props : { style : style . nowrapTd } }
132
+ cell : { props : { style : style . nowrapTd } }
130
133
} ) ;
131
134
132
135
if ( showFromAddress ) {
133
136
columns . push ( {
137
+ property : 'from-address' ,
134
138
header : {
135
139
label : 'From' ,
136
140
transforms : [ sortable ] ,
137
141
props : { style : style . nowrap }
138
142
} ,
139
- cell : { property : 'from-address' , props : { style : style . nowrapTd } }
143
+ cell : { props : { style : style . nowrapTd } }
140
144
} ) ;
141
145
}
142
146
143
147
if ( showToAddress ) {
144
148
columns . push ( {
149
+ property : 'to-address' ,
145
150
header : {
146
151
label : 'To' ,
147
152
transforms : [ sortable ] ,
148
153
props : { style : style . nowrap }
149
154
} ,
150
- cell : { property : 'to-address' , props : { style : style . nowrapTd } }
155
+ cell : { props : { style : style . nowrapTd } }
151
156
} ) ;
152
157
}
153
158
154
159
if ( showPacketInfo ) {
155
160
columns . push ( {
161
+ property : 'packet-info' ,
156
162
header : {
157
163
label : 'Packet' ,
158
164
transforms : [ sortable ] ,
159
165
props : { style : style . nowrap }
160
166
} ,
161
- cell : { property : 'packet-info' , props : { style : style . nowrapTd } }
167
+ cell : { props : { style : style . nowrapTd } }
162
168
} ) ;
163
169
}
164
170
165
171
columns . push ( {
172
+ property : 'message' ,
166
173
header : {
167
174
label : 'Message' ,
168
175
transforms : [ sortable ] ,
169
176
props : { style : style . nowrap }
170
177
} ,
171
- cell : { property : 'message' , props : { style : style . prewrapTd } }
178
+ cell : { props : { style : style . prewrapTd } }
172
179
} ) ;
173
180
174
181
const { logRows} = this . props ;
0 commit comments