mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-10-15 09:13:16 +01:00
improve goal target formatting in superadmin interface
This commit is contained in:
@@ -107,7 +107,8 @@ class GoalResource extends Resource
|
|||||||
TextColumn::make('comparison')
|
TextColumn::make('comparison')
|
||||||
->sortable(),
|
->sortable(),
|
||||||
TextColumn::make('target_seconds')
|
TextColumn::make('target_seconds')
|
||||||
->label('Target (seconds)')
|
->label('Target')
|
||||||
|
->formatStateUsing(fn (int $state): string => sprintf('%dh %02dm', intdiv($state, 3600), intdiv($state % 3600, 60)))
|
||||||
->sortable(),
|
->sortable(),
|
||||||
TextColumn::make('period')
|
TextColumn::make('period')
|
||||||
->sortable(),
|
->sortable(),
|
||||||
|
|||||||
Reference in New Issue
Block a user