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 create new button for single files. #1200

Merged
merged 1 commit into from
Mar 28, 2018
Merged

Conversation

tech4him1
Copy link
Contributor

- Summary

Hides the "Publish and Create New" button for single-file collections. Uses the code from the "Quick Add" button.

Fix #1183.

- Test plan

Manually tested with both simple and editorial workflows.

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@tech4him1
Copy link
Contributor Author

tech4him1 commented Mar 27, 2018

@erquhart Do we need to be checking for this somewhere deeper down than the UI, so that even if a "create new" button was left, it wouldn't work?

@verythorough
Copy link
Contributor

Deploy preview for netlify-cms-www ready!

Built with commit 7f516f7

https://deploy-preview-1200--netlify-cms-www.netlify.com

@verythorough
Copy link
Contributor

Deploy preview for cms-demo ready!

Built with commit 7f516f7

https://deploy-preview-1200--cms-demo.netlify.com

@erquhart
Copy link
Contributor

@tech4him1 I agree it should be more centralized, but this is fine for now.

@erquhart erquhart merged commit 2146914 into master Mar 28, 2018
@erquhart erquhart deleted the 1183-fix-new-single-entry branch March 28, 2018 14:11
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.

"Publish and create new" on file collection
3 participants