@@ -6,6 +6,7 @@ import { Map } from 'immutable';
6
6
import { SecondaryLine } from './secondary_line' ;
7
7
import { PrimaryLine } from './primary_line' ;
8
8
import { Title } from './title' ;
9
+ import { history } from '../../store/history' ;
9
10
10
11
export class Row extends React . PureComponent {
11
12
props : {
@@ -42,13 +43,17 @@ export class Row extends React.PureComponent {
42
43
43
44
backgroundClass += active
44
45
? 'light-blue'
45
- : this . wasOpen ? ' bg-darken5 ' : '' ;
46
+ : this . wasOpen
47
+ ? ' bg-darken5 '
48
+ : '' ;
46
49
return (
47
- < Link
48
- to = { {
49
- search : window . location . search ,
50
- pathname : `/changesets/${ changesetId } `
51
- } }
50
+ < div
51
+ onClick = { ( ) =>
52
+ history . push ( {
53
+ search : window . location . search ,
54
+ pathname : `/changesets/${ changesetId } `
55
+ } )
56
+ }
52
57
>
53
58
< div className = { `${ backgroundClass } ${ borderClass } ` } ref = { inputRef } >
54
59
< div
@@ -58,20 +63,27 @@ export class Row extends React.PureComponent {
58
63
}
59
64
>
60
65
< div className = "flex-parent flex-parent--column" >
61
- < div >
62
- < Title
63
- properties = { properties }
64
- wasOpen = { this . wasOpen }
65
- date = { properties . get ( 'date' ) }
66
- />
67
- </ div >
68
- < div >
69
- < PrimaryLine
70
- reasons = { properties . get ( 'reasons' ) }
71
- tags = { properties . get ( 'tags' ) }
72
- comment = { properties . get ( 'comment' ) }
73
- />
74
- </ div >
66
+ < Link
67
+ to = { {
68
+ search : window . location . search ,
69
+ pathname : `/changesets/${ changesetId } `
70
+ } }
71
+ >
72
+ < div >
73
+ < Title
74
+ properties = { properties }
75
+ wasOpen = { this . wasOpen }
76
+ date = { properties . get ( 'date' ) }
77
+ />
78
+ </ div >
79
+ < div >
80
+ < PrimaryLine
81
+ reasons = { properties . get ( 'reasons' ) }
82
+ tags = { properties . get ( 'tags' ) }
83
+ comment = { properties . get ( 'comment' ) }
84
+ />
85
+ </ div >
86
+ </ Link >
75
87
< div >
76
88
< SecondaryLine
77
89
changesetId = { changesetId }
@@ -82,7 +94,7 @@ export class Row extends React.PureComponent {
82
94
</ div >
83
95
</ div >
84
96
</ div >
85
- </ Link >
97
+ </ div >
86
98
) ;
87
99
}
88
100
}
0 commit comments