Allow searching for port when associating allocations (#801)

This commit is contained in:
Lance Pioch 2024-12-08 16:24:00 -05:00 committed by GitHub
parent 839ff96271
commit 2bfc788e13
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -152,6 +152,7 @@ class AllocationsRelationManager extends RelationManager
->associateAnother(false) ->associateAnother(false)
->preloadRecordSelect() ->preloadRecordSelect()
->recordSelectOptionsQuery(fn ($query) => $query->whereBelongsTo($this->getOwnerRecord()->node)->whereNull('server_id')) ->recordSelectOptionsQuery(fn ($query) => $query->whereBelongsTo($this->getOwnerRecord()->node)->whereNull('server_id'))
->recordSelectSearchColumns(['ip', 'port'])
->label('Add Allocation'), ->label('Add Allocation'),
]) ])
->bulkActions([ ->bulkActions([