Custom link confirmation dialog box #9571

Closed
opened 2025-12-29 21:19:06 +01:00 by adam · 4 comments
Owner

Originally created by @akshay225063 on GitHub (May 2, 2024).

NetBox version

v3.6.9

Feature type

Change to existing functionality

Proposed functionality

I have created 2 custom links "Block company" and "Unblock company" .
Currently If I click on any of the button then it will do the required operation but I need to add a confirmation dialog before it will do any operation just like we have inbuilt confirmation dialog added for "delete" button.

first_img
second_img

Use case

Currently we only add this feature for delete button where confirmation of the user is required but for other custom links this feature is not implemented.
second_img

Database changes

No response

External dependencies

No response

Originally created by @akshay225063 on GitHub (May 2, 2024). ### NetBox version v3.6.9 ### Feature type Change to existing functionality ### Proposed functionality I have created 2 custom links "Block company" and "Unblock company" . Currently If I click on any of the button then it will do the required operation but I need to add a confirmation dialog before it will do any operation just like we have inbuilt confirmation dialog added for "delete" button. ![first_img](https://github.com/netbox-community/netbox/assets/67414818/fdba5b60-6049-4601-b191-651f2860e2f0) ![second_img](https://github.com/netbox-community/netbox/assets/67414818/9bf4d82d-03a7-4648-9d31-ea749217312d) ### Use case Currently we only add this feature for delete button where confirmation of the user is required but for other custom links this feature is not implemented. ![second_img](https://github.com/netbox-community/netbox/assets/67414818/fb78bf58-6c68-4227-8197-b995654ea29a) ### Database changes _No response_ ### External dependencies _No response_
adam added the type: featurestatus: revisions needed labels 2025-12-29 21:19:06 +01:00
adam closed this issue 2025-12-29 21:19:07 +01:00
Author
Owner

@jeremystretch commented on GitHub (May 2, 2024):

Thank you for your interest in extending NetBox. Unfortunately, the information you have provided does not constitute an actionable feature request. Per our contributing guide, a feature request must include a thorough description of the proposed functionality, including any database changes, new views or API endpoints, and so on. It must also include a detailed use case justifying its implementation. If you would like to elaborate on your proposal, please modify your post above. If sufficient detail is not added, this issue will be closed.

@jeremystretch commented on GitHub (May 2, 2024): Thank you for your interest in extending NetBox. Unfortunately, the information you have provided does not constitute an actionable feature request. Per our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md), a feature request must include a thorough description of the proposed functionality, including any database changes, new views or API endpoints, and so on. It must also include a detailed use case justifying its implementation. If you would like to elaborate on your proposal, please modify your post above. If sufficient detail is not added, this issue will be closed.
Author
Owner

@arthanson commented on GitHub (May 15, 2024):

@akshay225063 can you please expand on what you want here? It sounds like you have added some extra code for the block and unblock but want us to add a custom dialog for it? You can look at the code for the delete confirmation modal and potentially use that for your confirmation modal. Or are you looking for some type of extension mechanism?

@arthanson commented on GitHub (May 15, 2024): @akshay225063 can you please expand on what you want here? It sounds like you have added some extra code for the block and unblock but want us to add a custom dialog for it? You can look at the code for the delete confirmation modal and potentially use that for your confirmation modal. Or are you looking for some type of extension mechanism?
Author
Owner

@arthanson commented on GitHub (May 17, 2024):

Closing as no feedback.

@arthanson commented on GitHub (May 17, 2024): Closing as no feedback.
Author
Owner

@akshay225063 commented on GitHub (May 17, 2024):

Hello @arthanson
Yes you are correct I have block and unblock code which get executed when custom link block and unblock company clicked.
But when It clicked instead of executing the code user should get custom dialog to confirm
it .
Now I don't know how I can do this integration because for custom links I cannot do any modifications in the code even if I have deleted confirmation modal code but I am not able to implement same with block and unblock custom links.
Note: I have implemented these custom links in Site modal .

Please let me know if any more information required.
Could you please re open the issue

@akshay225063 commented on GitHub (May 17, 2024): Hello @arthanson Yes you are correct I have block and unblock code which get executed when custom link block and unblock company clicked. But when It clicked instead of executing the code user should get custom dialog to confirm it . Now I don't know how I can do this integration because for custom links I cannot do any modifications in the code even if I have deleted confirmation modal code but I am not able to implement same with block and unblock custom links. Note: I have implemented these custom links in Site modal . Please let me know if any more information required. Could you please re open the issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9571