From 2a6a168d95aba149b422b7e761e7d9066bd4ad9d Mon Sep 17 00:00:00 2001 From: Cannonb4ll Date: Tue, 7 Nov 2023 08:57:39 +0100 Subject: [PATCH] fixes --- .../RelationManagers/CommentsRelationManager.php | 3 ++- app/Filament/Resources/ItemResource.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Filament/Resources/InboxResource/RelationManagers/CommentsRelationManager.php b/app/Filament/Resources/InboxResource/RelationManagers/CommentsRelationManager.php index 695520f3..ff363ae7 100644 --- a/app/Filament/Resources/InboxResource/RelationManagers/CommentsRelationManager.php +++ b/app/Filament/Resources/InboxResource/RelationManagers/CommentsRelationManager.php @@ -2,6 +2,7 @@ namespace App\Filament\Resources\InboxResource\RelationManagers; +use App\Filament\Resources\CommentResource; use Closure; use Filament\Tables; use Filament\Forms\Form; @@ -18,7 +19,7 @@ class CommentsRelationManager extends RelationManager public function table(Table $table): Table { return $table - ->recordUrl(fn (Model $record): string => route('filament.resources.comments.edit', ['record' => $record])) + ->recordUrl(fn (Model $record): string => CommentResource::getUrl('edit', ['record' => $record])) ->columns([ Tables\Columns\TextColumn::make('content')->searchable(), Tables\Columns\TextColumn::make('user.name'), diff --git a/app/Filament/Resources/ItemResource.php b/app/Filament/Resources/ItemResource.php index 21f2b02f..76fc4669 100644 --- a/app/Filament/Resources/ItemResource.php +++ b/app/Filament/Resources/ItemResource.php @@ -205,8 +205,8 @@ public static function table(Table $table): Table Tables\Columns\TextColumn::make('project.title'), Tables\Columns\TextColumn::make('board.title')->sortable(), Tables\Columns\TextColumn::make('user.name')->toggleable(), - Tables\Columns\TagsColumn::make('tags.name')->toggleable()->toggledHiddenByDefault(), - Tables\Columns\TagsColumn::make('assignedUsers.name')->visible(auth()->user()->hasRole(UserRole::Admin))->toggleable()->toggledHiddenByDefault(), +// Tables\Columns\TagsColumn::make('tags.name')->toggleable()->toggledHiddenByDefault(), + Tables\Columns\TextColumn::make('assignedUsers.name')->badge()->visible(auth()->user()->hasRole(UserRole::Admin))->toggleable()->toggledHiddenByDefault(), Tables\Columns\TextColumn::make('created_at') ->dateTime() ->sortable()