Download SVG should honor images/labels setting #6214

Closed
opened 2025-12-29 19:38:07 +01:00 by adam · 2 comments
Owner

Originally created by @jcollie on GitHub (Mar 15, 2022).

NetBox version

netbox-84cb8b95fd-dcfw8 (v3.2.0-beta2)

Python version

3.9

Steps to Reproduce

  1. Navigate to a rack.
  2. Select "Labels only" in the dropdown menu.
  3. Click on the "Download SVG" link.

Expected Behavior

SVG should be downloaded that shows labels only.

Observed Behavior

SVG is downloaded that includes images.

Originally created by @jcollie on GitHub (Mar 15, 2022). ### NetBox version netbox-84cb8b95fd-dcfw8 (v3.2.0-beta2) ### Python version 3.9 ### Steps to Reproduce 1. Navigate to a rack. 2. Select "Labels only" in the dropdown menu. 3. Click on the "Download SVG" link. ### Expected Behavior SVG should be downloaded that shows labels only. ### Observed Behavior SVG is downloaded that includes images.
adam added the type: featurestatus: revisions needed labels 2025-12-29 19:38:07 +01:00
adam closed this issue 2025-12-29 19:38:08 +01:00
Author
Owner

@jeremystretch commented on GitHub (Mar 17, 2022):

This isn't a bug: The SVG is always generated the same. The toggle you see on the UI is entirely a frontend construct: It hides and displays certain elements of the SVG image in accordance with the selected option. This is much more efficient than generating a new SVG image each time a new option is selected.

You're welcome to resubmit this as a feature request if you have a specific implementation in mind. To be honest though, it doesn't seem like a great place to spend a lot of effort.

@jeremystretch commented on GitHub (Mar 17, 2022): This isn't a bug: The SVG is always generated the same. The toggle you see on the UI is entirely a frontend construct: It hides and displays certain elements of the SVG image in accordance with the selected option. This is much more efficient than generating a new SVG image each time a new option is selected. You're welcome to resubmit this as a feature request if you have a specific implementation in mind. To be honest though, it doesn't seem like a great place to spend a lot of effort.
Author
Owner

@jeremystretch commented on GitHub (Apr 14, 2022):

Closing this out as there's been no further response.

@jeremystretch commented on GitHub (Apr 14, 2022): Closing this out as there's been no further response.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6214