Skip to content
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

Hide order selectors when only one order available #2397

Merged
merged 1 commit into from
Jan 30, 2018

Conversation

bertocq
Copy link
Collaborator

@bertocq bertocq commented Jan 29, 2018

Where

What

On upcoming internal comments we'll offer only one ordering option (Oldest). But when there's only one option... what's the point of showing the selection box anymore? It'll trick the user into thinking there's more to choose from. I'd rather not see it :) (although I agree that @decabeza may
think best option here would be to show the current ordering method but in plain text... if that's the case fire your mockup guns 🤗 )

How

Simple if statement checking if valid orders are more than one

Screenshots

Before

screen shot 2018-01-29 at 20 50 28

After

screen shot 2018-01-29 at 20 49 36

Test

Instead of doing hacky things on specs to test this, it will be tested at the only place that has only one ordering option for comments: Valuator comments #2403

Deployment

As usual

Warnings

None but that mention at #What for possible UI/UX improvement

@bertocq bertocq changed the title [WIP] Hide order selectors when only one order available Hide order selectors when only one order available Jan 30, 2018
@bertocq bertocq force-pushed the hide_order_selector_if_only_one_order branch from 6bd55a2 to e5ce55b Compare January 30, 2018 16:03
@bertocq bertocq assigned decabeza and unassigned decabeza Jan 30, 2018
@bertocq bertocq requested a review from decabeza January 30, 2018 16:05
@bertocq bertocq merged commit e0e67c9 into master Jan 30, 2018
@bertocq bertocq deleted the hide_order_selector_if_only_one_order branch January 30, 2018 18:20
clairezed pushed a commit to CDJ11/CDJ that referenced this pull request Jun 26, 2018
…or_if_only_one_order

Hide order selectors when only one order available
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants