-
Notifications
You must be signed in to change notification settings - Fork 20
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
Empty Calendar - when no data #14
Comments
Hi @leenasn. This is because Active Admin renders the "No data found" message before sending instead of calling the index renderer. /active_admin/views/pages/index.rb#L55 The functionality you need can be accomplished rewriting the |
@gbisheimer thanks for the quick response. I will try overriding Another question: how can I pass a scope or a condition ti filter the model? For eg: I am getting all the appointments that the current logged in user has access to. My configuration is: `
end Thanks, |
For anyone still looking for the solution, you can check permission inside the block, and return empty hash if user does not have requisite privileges |
Hi,
Thank you for the plugin. One thing I noticed when there are no data to show, I expect it to render an empty calendar. But it instead renders "No data found" message, the std. Active Admin message. Can you let me know what can be done to render an empty calendar?
Thanks,
Leena
The text was updated successfully, but these errors were encountered: