Skip to content

Commit

Permalink
Merge branch 'netbox-community:0.5.0' into 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cruse1977 authored Oct 9, 2024
2 parents 03d1d3c + db0fe59 commit ee577c3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ A netbox plugin providing floorplan mapping capability for locations and sites
|-------------|-----------|
| 3.5 | >= 0.3.2 |
| 3.6 | >= 0.3.2 |
| >4.0.2 | 0.4.0 |
| 4.0.x | 0.4.1 |
| 4.1.x | 0.5.0 |

## Installing

Expand Down
8 changes: 4 additions & 4 deletions netbox_floorplan/__init__.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
from netbox.plugins import PluginConfig

from .version import __version__

class FloorplanConfig(PluginConfig):

name = "netbox_floorplan"
verbose_name = "Netbox Floorplan"
description = ""
version = "0.4.0"
version = __version__
base_url = "floorplan"
min_version = "4.0.2"
max_version = "4.0.10"
min_version = "4.1.0"
max_version = "4.1.99"


config = FloorplanConfig
4 changes: 2 additions & 2 deletions netbox_floorplan/static/netbox_floorplan/floorplan/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ var record_type = document.getElementById('record_type').value;
var site_id = document.getElementById('site_id').value;
var location_id = document.getElementById('location_id').value;

htmx.ajax('GET', `/plugins/floorplan/floorplans/racks/?floorplan_id=${obj_pk}`, { target: '#rack-card', swap: 'innerHTML', trigger: 'load' })
htmx.ajax('GET', `/plugins/floorplan/floorplans/devices/?floorplan_id=${obj_pk}`, { target: '#unrack-card', swap: 'innerHTML', trigger: 'load' })
htmx.ajax('GET', `/plugins/floorplan/floorplans/racks/?floorplan_id=${obj_pk}`, { source: '#rack-card', target: '#rack-card', swap: 'innerHTML', trigger: 'load' })
htmx.ajax('GET', `/plugins/floorplan/floorplans/devices/?floorplan_id=${obj_pk}`, { source: '#unrack-card', target: '#unrack-card', swap: 'innerHTML', trigger: 'load' })


fabric.Object.prototype.set({
Expand Down
2 changes: 1 addition & 1 deletion netbox_floorplan/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4.0"
__version__ = "0.5.0"
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ def get_version(rel_path):
packages=find_packages(),
include_package_data=True,
zip_safe=False,
min_version="4.0.2",
max_version="4.0.10"
min_version="4.1.0",
max_version="4.1.99"
)

0 comments on commit ee577c3

Please sign in to comment.