-
Notifications
You must be signed in to change notification settings - Fork 39
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
feat: add duplicate document action #194
base: main
Are you sure you want to change the base?
Conversation
c5b399f
to
0222cdf
Compare
d974871
to
6f087ff
Compare
// ...all other config | ||
document: { | ||
actions(prev, { schemaType }) { | ||
return schemaTypes.includes(schemaType) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a comment here that schemaTypes
would be the same array that you add to the documentInternationalization
plugin config. When you copy-paste this snippet it's likely an undefined variable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'd keep the same Duplicate
icon as the default action
Adds a custom document action to facilitate duplicating a localized document, its translations, and the underlying metadata document.
Things to review:
handle
and using the document store in general