mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-05 16:02:34 +00:00
tests
This commit is contained in:
@ -50,7 +50,7 @@ public function infolist(Infolist $infolist): Infolist
|
||||
TextEntry::make('last_updated_check')
|
||||
->label('Last Updated Check')
|
||||
->inlineLabel()
|
||||
->state(fn (Server $record) => $record->last_update_check?->ago())
|
||||
->state(fn (Server $record) => $record->last_update_check ? $record->last_update_check->ago() : '-')
|
||||
->suffixAction(
|
||||
Action::make('check-update')
|
||||
->icon('heroicon-o-arrow-path')
|
||||
@ -63,11 +63,11 @@ public function infolist(Infolist $infolist): Infolist
|
||||
Notification::make()
|
||||
->info()
|
||||
->title('Available updates:')
|
||||
->body($record->available_updates)
|
||||
->body($record->updates)
|
||||
->send();
|
||||
})
|
||||
),
|
||||
TextEntry::make('available_updates')
|
||||
TextEntry::make('updates')
|
||||
->label('Available Updates')
|
||||
->inlineLabel()
|
||||
->suffixAction(
|
||||
|
@ -32,6 +32,7 @@ class ServerSummary extends Widget implements HasForms, HasInfolists
|
||||
public function infolist(Infolist $infolist): Infolist
|
||||
{
|
||||
return $infolist
|
||||
->name('server-summary')
|
||||
->schema([
|
||||
Fieldset::make('info')
|
||||
->label('Server Summary')
|
||||
|
Reference in New Issue
Block a user