NagVis / nagvis

Visualization addon for your open source monitoring core
http://nagvis.org/
GNU General Public License v2.0
113 stars 73 forks source link

Issue on context menu and object refresh upon saving #336

Open euniceremoquillo opened 1 year ago

euniceremoquillo commented 1 year ago

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

euniceremoquillo commented 1 year ago

We have suggested fixes on pull request #333