Skip to content

Conversation

@arthanson
Copy link
Collaborator

@arthanson arthanson commented Nov 25, 2024

Fixes: #18044

script.html already derives from generic/object.html which has the plugin alert include, the issue was that the alert is keyed off of the context var object and the view uses script. It isn't really DRY to pass in both object and script, but to change would require it to change in the template extras/script/base.html which is included in other templates and this would cause the the branching message to also appear in those templates which isn't desired. We could then mask that out in the template include, but this way just keeps it isolated.

Note: This will not display anything without changes in the branching plugin which will be in a separate PR for that project. Screenshot shown with change in branching plugin to enable an alert here.

New Branch | NetBox 2024-11-25 08-52-37

@arthanson arthanson marked this pull request as ready for review November 25, 2024 17:03
@jeremystretch jeremystretch merged commit d122c33 into develop Dec 2, 2024
6 checks passed
@jeremystretch jeremystretch deleted the 18044-script-alert branch December 2, 2024 17:23
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extend alerts() functionality to ScriptForm

3 participants