-
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
withTranslationMaintenance button not visible #67
Comments
Hey @sven5 👋 I'm not a maintainer, but I recently faced the exact same problem. In my case it didn't show up because I had defined my own desk-structure.js (or .ts), which was overriding the default Sanity desk structure that the plugin extends (AFAIK). As I needed the custom desk structure for other stuff, I didn't want to remove it, which would probably have solved the issue. Turns out there is a In my case, desk-structure.ts looked something like this: import S from "@sanity/desk-tool/structure-builder";
// ... other imports
export default () =>
S.list()
.id("__root__")
.title("Content")
.items([
S.listItem()
.title("Pages")
.schemaType("page")
.child(S.documentTypeList("page").title("Pages")),
// ... other listItems
]); The only change that was needed was to import the import S from "@sanity/desk-tool/structure-builder";
// ... other imports
import { getMaintenanceListItem } from "@sanity/document-internationalization/lib/structure";
export default () =>
S.list()
.id("__root__")
.title("Content")
.items([
S.listItem()
.title("Pages")
.schemaType("page")
.child(S.documentTypeList("page").title("Pages")),
// ... other listItems
S.divider(),
getMaintenanceListItem(),
]); I'm pretty sure it's not even necessary to enable the Hope that helps! |
What could be the issue if the maintenance button doesn't show in Sanity Studio?
The text was updated successfully, but these errors were encountered: