From 0c61a631916cb6da983691588baa3f5c276d2dd3 Mon Sep 17 00:00:00 2001 From: notCharles Date: Sun, 19 May 2024 20:23:59 -0400 Subject: [PATCH] Add id to allocation table --- .../RelationManagers/AllocationsRelationManager.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Filament/Resources/NodeResource/RelationManagers/AllocationsRelationManager.php b/app/Filament/Resources/NodeResource/RelationManagers/AllocationsRelationManager.php index d4d5b07e4..f282c4bbc 100644 --- a/app/Filament/Resources/NodeResource/RelationManagers/AllocationsRelationManager.php +++ b/app/Filament/Resources/NodeResource/RelationManagers/AllocationsRelationManager.php @@ -40,6 +40,10 @@ class AllocationsRelationManager extends RelationManager ->checkIfRecordIsSelectableUsing(fn (Allocation $allocation) => $allocation->server_id === null) ->searchable() ->columns([ + Tables\Columns\TextColumn::make('id'), + Tables\Columns\TextColumn::make('port') + ->searchable() + ->label('Port'), Tables\Columns\TextColumn::make('server.name') ->label('Server') ->icon('tabler-brand-docker') @@ -51,9 +55,6 @@ class AllocationsRelationManager extends RelationManager Tables\Columns\TextInputColumn::make('ip') ->searchable() ->label('IP'), - Tables\Columns\TextColumn::make('port') - ->searchable() - ->label('Port'), ]) ->filters([ //