Clear Rack Face when clear Rack #562

Closed
opened 2026-04-05 16:43:24 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @arthanson on 1/15/2026

Fixes: #20383

We could just clear this field in clean, but it still leaves the UI field set when clearing the rack which is different then the behavior of position field.

The Position field is cleared because it has rack in the api_url but rack_face is just a regular select and doesn't need any URL params. It would be useful in other places to allow clearing related fields like this so made a ts-clear-field attribute, like the existing ts-disabled-field to allow setting a field to be auto-cleared on another field being cleared.

*Originally created by @arthanson on 1/15/2026* ### Fixes: #20383 We could just clear this field in clean, but it still leaves the UI field set when clearing the rack which is different then the behavior of position field. The Position field is cleared because it has rack in the api_url but rack_face is just a regular select and doesn't need any URL params. It would be useful in other places to allow clearing related fields like this so made a ts-clear-field attribute, like the existing ts-disabled-field to allow setting a field to be auto-cleared on another field being cleared.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#562