Skip to content

Don't show 'toggle all' checkbox if max_items is 1 - #4309

Merged
jasonvarga merged 1 commit into
statamic:3.2from
duncanmcclean:fix/4246
Sep 28, 2021
Merged

Don't show 'toggle all' checkbox if max_items is 1#4309
jasonvarga merged 1 commit into
statamic:3.2from
duncanmcclean:fix/4246

Conversation

@duncanmcclean

@duncanmccleanduncanmcclean commented Sep 25, 2021

Copy link
Copy Markdown
Member

This pull request partly addresses #4246 by hiding the 'toggle all' checkbox in the Asset Browser if max_items on the field is 1.

@jasonvarga

Copy link
Copy Markdown
Member

This only prevents the toggle if max_files is 1.

If you set the max_files to another number, you can still click the toggle and end up selecting more than you should.

Thanks though!

@duncanmcclean

Copy link
Copy Markdown
MemberAuthor

Doh! Should have thought of that - sorry!

@duncanmcclean
duncanmcclean deleted the fix/4246 branch September 28, 2021 15:35
@jasonvarga

Copy link
Copy Markdown
Member

Actually it's still a good change to make.

@duncanmcclean
duncanmcclean restored the fix/4246 branch September 28, 2021 15:35
@jasonvargajasonvarga reopened this Sep 28, 2021
@jasonvarga
jasonvarga merged commit f54d62e into statamic:3.2Sep 28, 2021
@duncanmcclean
duncanmcclean deleted the fix/4246 branch September 28, 2021 15:48
Sign up for freeto 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.

2 participants

@duncanmcclean@jasonvarga