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

Create Intent button not showing up #88

Open
perrydrums opened this issue Mar 8, 2024 · 0 comments
Open

Create Intent button not showing up #88

perrydrums opened this issue Mar 8, 2024 · 0 comments

Comments

@perrydrums
Copy link

The create new document button is not showing up. I tried setting createIntent: true and also tried adding custom menu items, but those are not showing up either.

Snippet of the structure:

return S.listItem()
    .title("Content")
    .child(
      S.list()
        .title("Content")
        .items([
          S.listItem()
            .id("homePage")
            .title("Homepage")
            .icon(IoHomeOutline)
            .child(
              S.document()
                .schemaType("homePage")
                .documentId(`${site}-homePage`)
                .initialValueTemplate(`homePage-${defaultLanguage}`),
            ),
          orderableDocumentListDeskItem({
            type: "product",
            title: "Products",
            params: { site },
            filter: "site == $site",
            createIntent: true,
            icon: BsBoxSeam,
            S,
            context,
          }),
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

No branches or pull requests

1 participant