-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat: toggle filters in mobile devices #3137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: toggle filters in mobile devices #3137
Conversation
| return getDateRanges.bind(this)(); | ||
| }), | ||
|
|
||
| showFiltersOnMobile: computed('device.isMobile', 'showFilters', function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use computed.and instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually had to change the logic because the filters weren't showing up on desktop.. Please review now? @niranjan94
6cb7da2 to
8a28670
Compare
app/components/explore/side-bar.js
Outdated
| }), | ||
|
|
||
| showFiltersOnMobile: computed('device.isMobile', 'showFilters', function() { | ||
| return ((this.device.isMobile && this.showFilters) || !this.device.isMobile); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@uds5501 could this logic be simplified into
!this.device.isMobile || this.showFilters
kushthedude
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@uds5501 A toggle switch would be better than a button
|
@kushthedude I think I tried following EventBrite UI as closely as possible without disturbing the basic UI of the code, they went with button so I think it's best we go with button too 😅 . Of course, I am prepared to make the change if the mentors agree to that. @CosmicCoder96 @niranjan94 @SaptakS @pradeepgangwar |
Fixes #3136
Changes proposed in this pull request:
Checklist
developmentbranch.Two mobile views of the implementation, with and without the filters
Without :
With :