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

UI Elements not working on v3.7.5 #3

Open
captainCrench opened this issue Apr 5, 2024 · 1 comment
Open

UI Elements not working on v3.7.5 #3

captainCrench opened this issue Apr 5, 2024 · 1 comment

Comments

@captainCrench
Copy link

captainCrench commented Apr 5, 2024

This plugin was exactly what we were looking for as far as addional functionality for paths and impact analysis. Would love getting it to work.

Looks like at the moment, the UI doesn't seem to respond at all when trying to lock or unlock or add devices. Anywhere I can start looking to troubleshoot this? The plugin is installed and running, just a matter of the UI not functioning. I'm running netbox in a docker container from this project: https://github.com/netbox-community/netbox-docker so I'm thinking it may have to do with npm and javascript in some manner.

The user in Netbox also has an API key.

@sol1-matt
Copy link
Member

The basic steps to get up and running are

  • Install Plugin in Netbox
  • Create API Key
    After that it should work but I've not personally used path with docker.

As path has its own GUI that does a lot of the work inside the browser in js.
For troubleshooting I'd start with a web inspector. At a bare minimum you should see the assets being loaded and have no console errors.

image

For the unlock event specifically there is an event listener in index.js that is triggered when you click Unlock, so adding a break point inside this and trying to unlock should tell you if the event is being called correctly.

            document.getElementById("nbp-unlock").addEventListener("click", ()=>{
                Rn = !1,
                ge.autoungrabify(!1),
                ge.autounselectify(!1),
                i(ge.$(":selected"))
            }
            ),

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

2 participants