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

fix inspector not showing up in certain cases #2499

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

patricklx
Copy link
Collaborator

@patricklx patricklx commented Nov 7, 2023

fix issues with chrome api.
for some the inspector does not show up, for others it does, not sure why.

fix onclick event & hide/show

action icon is always shown
there is no option to hide/show anymore
instead i switch between grey/orange icon to indicate detection.

enable/disable actually only disables click actions

fixes #2496

@patricklx patricklx force-pushed the fix-chrome-api branch 2 times, most recently from 0323608 to e894550 Compare November 7, 2023 11:57
@patricklx patricklx marked this pull request as ready for review November 7, 2023 11:58
@patricklx patricklx closed this Nov 7, 2023
@patricklx patricklx reopened this Nov 7, 2023
@@ -39,8 +43,8 @@

"action": {
"default_icon": {
"19": "{{PANE_ROOT}}/assets/images/icon19.png",
"38": "{{PANE_ROOT}}/assets/images/icon38.png"
"19": "{{PANE_ROOT}}/assets/images/icon19_grey.png",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are the default icons the grey ones?

Copy link
Collaborator Author

@patricklx patricklx Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

by default it should show not detected icon. as the detection state only shows up when an ember app is detected

contextMenuListeners.forEach((fn) => fn({ menuItemId: menu.id }));
},

onClicked: {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume you tested this to ensure it still found the component in the tree and selected it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i tested it now :)
works

@patricklx patricklx marked this pull request as draft November 7, 2023 12:32
action icon is always shown
there is no option to hide/show anymore
instead i switch between grey/orange icon to indicate detection
@patricklx patricklx marked this pull request as ready for review November 7, 2023 12:35
@patricklx patricklx changed the title fix chrome api fix inspector not showing up in certain cases Nov 7, 2023
@RobbieTheWagner RobbieTheWagner merged commit ba75238 into emberjs:main Nov 7, 2023
15 checks passed
@patricklx patricklx deleted the fix-chrome-api branch November 7, 2023 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inspector not loading: issues with chrome api
2 participants