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

Bug when creating custom plugin : bad config for menu #7162

Closed
filol opened this issue Jul 24, 2020 · 1 comment · Fixed by #7169
Closed

Bug when creating custom plugin : bad config for menu #7162

filol opened this issue Jul 24, 2020 · 1 comment · Fixed by #7169
Labels
issue: bug Issue reporting a bug severity: medium If it breaks the basic use of the product but can be worked around source: core:admin Source is core/admin package status: confirmed Confirmed by a Strapi Team member or multiple community members

Comments

@filol
Copy link

filol commented Jul 24, 2020

Describe the bug

When i generate a new plugin he doesn't appear in menu. The automated configuration file contain a mistake

Steps to reproduce the behavior

  1. strapi new my-project --quickstart
  2. cd my-project && strapi generate:plugin my-plugin
  3. yarn develop --watch-admin

No plugin in menu

Expected behavior

I should see my new plugin in menu

Code snippets
In my-plugin/admin/src/index.js

The menu snippet :

menu: {
      pluginsSection: [
        {
          destination: `/plugins/${pluginId}`,
          icon,
          label: {
            id: `${pluginId}.plugin.name`,
            defaultMessage: name,
          },
          name,
          permissions: [
            // Uncomment to set the permissions of the plugin here
            // {
            //   action: '', // the action name should be plugins::plugin-name.actionType
            //   subject: null,
            // },
          ],
        },
      ],
    },

But pluginsSection isn't right, it should be pluginsSectionLinks

System

  • Node.js version: v12.4.0
  • NPM version: 6.9.0
  • Strapi version: 3.1.1
  • Database: SQLite
  • Operating system: W10
lauriejim added a commit that referenced this issue Jul 25, 2020
Signed-off-by: Jim LAURIE <j.laurie6993@gmail.com>
@lauriejim lauriejim added severity: medium If it breaks the basic use of the product but can be worked around source: core:admin Source is core/admin package status: confirmed Confirmed by a Strapi Team member or multiple community members issue: bug Issue reporting a bug labels Jul 25, 2020
@lauriejim
Copy link
Contributor

Thank you for reporting that!
I fixed it.

alexandrebodin pushed a commit that referenced this issue Jul 28, 2020
Signed-off-by: Jim LAURIE <j.laurie6993@gmail.com>
gilfernandes pushed a commit to onepointconsulting/strapi that referenced this issue Aug 13, 2020
Signed-off-by: Jim LAURIE <j.laurie6993@gmail.com>
Signed-off-by: Gil Fernandes <gil.fernandes@onepointltd.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Issue reporting a bug severity: medium If it breaks the basic use of the product but can be worked around source: core:admin Source is core/admin package status: confirmed Confirmed by a Strapi Team member or multiple community members
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants