Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cannonb4ll committed Nov 7, 2023
1 parent 37b1eef commit 2a6a168
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Filament\Resources\InboxResource\RelationManagers;

use App\Filament\Resources\CommentResource;
use Closure;
use Filament\Tables;
use Filament\Forms\Form;
Expand All @@ -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'),
Expand Down
4 changes: 2 additions & 2 deletions app/Filament/Resources/ItemResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2a6a168

Please sign in to comment.