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

[RFR] Disable the Export button when there is nothing to export #2595

Merged
merged 3 commits into from
Dec 5, 2018

Conversation

Luwangel
Copy link
Contributor

@Luwangel Luwangel commented Nov 30, 2018

Related to this issue #2483

Todo

  • Check the total and disable the export button when the total is 0
  • Write doc

selection_137

@fzaninotto
Copy link
Member

Nice! Don't forget to add the total propType defineition. Also, please PR against next as this is a new feature.

@Luwangel Luwangel changed the base branch from master to next November 30, 2018 13:55
@Luwangel Luwangel changed the title [WIP] Disable the Export button when there is nothing to export [RFR] Disable the Export button when there is nothing to export Nov 30, 2018
Copy link
Collaborator

@djhi djhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Missing an update to the documentation though: https://github.com/marmelab/react-admin/blob/master/docs/List.md#actions

@fzaninotto fzaninotto merged commit 1618935 into next Dec 5, 2018
@fzaninotto
Copy link
Member

Thanks!

@fzaninotto fzaninotto deleted the disable-export-no-data branch December 5, 2018 18:41
@fzaninotto fzaninotto added this to the 2.6.0 milestone Dec 5, 2018
@fzaninotto
Copy link
Member

@Luwangel You change triggers a warning on Mobile in the simple example (because the Export button is minimized, and uses a tooltip). Would you mind taking a look?

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.

3 participants