Skip to content

fix: ComponentInspector icon should be greyed out or not shown when componentInspector: false is set in the nuxt config file #742

Open
@HummingMind

Description

@HummingMind

🐛 The bug

Disabling the Component Inspector via the nuxt config file: devtools: { componentInspector: false, enabled: true } does not disable the inspector icon in the devtools UI. So if yo click on it, you get stuck, because you cannot select anything, but you also can't cancel out of it.

image

So I have to reload the page to continue.

🛠️ To reproduce

Any nuxt app

🌈 Expected behavior

The inspector icon/button should either be greyed out (disabled) or now be shown in the first place, since the functionality is disabled.

ℹ️ Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions