Skip to content

Conversation

arthanson
Copy link
Contributor

@arthanson arthanson commented Oct 6, 2025

Disables updating custom objects if on a branch.

Adds a warning to switch to the main branch if you are in a branch and go to the edit, bulk_edit, bulk_import pages for a custom object and disables the submit button. Also does this for the REST API. The template code is copied from the NetBox templates as there is not a good place to insert the warning by default.

Monosnap Image 2025-10-08 08-40-02 Monosnap Image 2025-10-09 09-12-40

@arthanson arthanson marked this pull request as ready for review October 9, 2025 16:19
@arthanson arthanson requested a review from bctiemann October 9, 2025 16:19
@arthanson
Copy link
Contributor Author

arthanson commented Oct 9, 2025

Updated as part of this so the CI pulls against main netbox branch, ,not feature.

@arthanson arthanson changed the title Add branching warning to bulk edit / import Disable updates to custom objects if in a branch Oct 9, 2025
@bctiemann bctiemann merged commit 1fd39e7 into main Oct 9, 2025
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants