@@ -16,10 +16,11 @@ export default class SideBar extends Component {
1616 customEndDate = null ;
1717 @tracked showFilters = false ;
1818 isMapVisible = true ;
19+ eventLocationType = null ;
1920
20- @computed ( 'category' , 'sub_category' , 'event_type' , 'startDate' , 'endDate' , 'location' , 'ticket_type' , 'cfs' )
21+ @computed ( 'category' , 'sub_category' , 'event_type' , 'startDate' , 'endDate' , 'location' , 'ticket_type' , 'cfs' , 'event_name' , 'is_online' )
2122 get hideClearFilters ( ) {
22- return ! ( this . category || this . sub_category || this . event_type || this . startDate || this . endDate || this . location || this . ticket_type || this . cfs ) ;
23+ return ! ( this . category || this . sub_category || this . event_type || this . startDate || this . endDate || this . location || this . ticket_type || this . cfs || this . event_name || this . is_online ) ;
2324 }
2425
2526 @computed ( 'category' , 'sub_category' )
@@ -47,6 +48,13 @@ export default class SideBar extends Component {
4748 } ) ;
4849 }
4950
51+ @action
52+ setLocationType ( locationType , val ) {
53+ this . set ( 'is_online' , this . eventLocationType === locationType ? null : val ) ;
54+ this . set ( 'eventLocationType' , this . eventLocationType === locationType ? null : locationType ) ;
55+ this . set ( 'location' , null ) ;
56+ }
57+
5058 @action
5159 selectCategory ( category , subCategory ) {
5260 this . set ( 'category' , ( category === this . category && ! subCategory ) ? null : category ) ;
@@ -153,15 +161,18 @@ export default class SideBar extends Component {
153161 @action
154162 clearFilters ( ) {
155163 this . setProperties ( {
156- startDate : null ,
157- endDate : null ,
158- dateType : null ,
159- category : null ,
160- sub_category : null ,
161- event_type : null ,
162- location : null ,
163- ticket_type : null ,
164- cfs : null
164+ startDate : null ,
165+ endDate : null ,
166+ dateType : null ,
167+ category : null ,
168+ sub_category : null ,
169+ event_type : null ,
170+ location : null ,
171+ ticket_type : null ,
172+ cfs : null ,
173+ event_name : null ,
174+ is_online : null ,
175+ eventLocationType : null
165176 } ) ;
166177 }
167178
0 commit comments