NagVis / nagvis

Visualization addon for your open source monitoring core

Home Page:http://nagvis.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue on context menu and object refresh upon saving

euniceremoquillo opened this issue · comments

Context menu does not close after editing a host/service. This occurs regardless of whether the user apply changes or not in a host or service in nagvis as long as the user saves the changes during modify object.
After modifying the object, when the refresh status option is executed twice a javascript error will popup.
"Javascript error occured: Uncaught TypeError: Cannot read properties of null (reading 'obj') [server]/nagvis/frontend/nagvis-js/js/ElementContext.js?v=1.9.34(49)"

Steps to replicate:

  1. Create a Regular Map or Edit an existing regular map.
  2. Create a host/service.
  3. Unlock the created host/service.
  4. Right click on it and select Modify Object.
  5. Click on save.
  6. Right click on the host/service which was selected for Modify object (The context menu does not close upon this right click) and select "Refresh status".
  7. After 1 attempt of "Refresh status" (Object does not refresh and the context menu is still displayed), then select it for the 2nd time (Javascript error pops up).

nagvis context issue

We have suggested fixes on pull request #333