Commit eed8a5e Nahid
committed
1 parent d156876 commit eed8a5e Copy full SHA for eed8a5e
File tree 2 files changed +6
-1
lines changed
magda-web-client/src/Components/SearchFacets
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
## 0.0.49
2
2
3
+ - In web dataset page, made facet search reset when user clicks on facet button so that it does not show result from last time.
3
4
- Made issued and update date not appear when valid dates are not available.
4
5
- Specify correct externalURL and namespace for gitlab to fix deployment auth.
5
6
- Add a CSV connector
Original file line number Diff line number Diff line change @@ -35,6 +35,10 @@ class FacetBasic extends Component {
35
35
}
36
36
37
37
render ( ) {
38
+ function resetAndToggle ( ) {
39
+ this . props . searchFacet ( ) ;
40
+ this . props . toggleFacet ( ) ;
41
+ }
38
42
return (
39
43
< div className = "facet-wrapper" >
40
44
< FacetHeader
@@ -44,7 +48,7 @@ class FacetBasic extends Component {
44
48
title = { this . props . title }
45
49
activeOptions = { this . props . activeOptions }
46
50
hasQuery = { this . props . hasQuery }
47
- onClick = { this . props . toggleFacet }
51
+ onClick = { resetAndToggle . bind ( this ) }
48
52
ref = { this . facetHeader }
49
53
updateComponentAlignment = { this . updateComponentAlignment }
50
54
/>
You can’t perform that action at this time.
0 commit comments