Skip to content

Commit

Permalink
activity: remove properties from tans for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy132 committed Dec 1, 2024
1 parent c11192c commit 73b3840
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function table(Table $table): Table
->columns([
TextColumn::make('event')
->html()
->formatStateUsing(fn ($state, ActivityLog $activityLog) => __('activity.'.str($state)->replace(':', '.'), $activityLog->properties?->toArray() ?? []))
->formatStateUsing(fn ($state, ActivityLog $activityLog) => __('activity.'.str($state)->replace(':', '.'))) // TODO: convert properties to a format that trans likes, see ActivityLogEntry.tsx - wrapProperties
->description(fn ($state) => $state),
TextColumn::make('user')
->state(fn (ActivityLog $activityLog) => $activityLog->actor instanceof User ? $activityLog->actor->username : 'System')
Expand Down

0 comments on commit 73b3840

Please sign in to comment.