Skip to content

Commit

Permalink
use placeholder if description empty
Browse files Browse the repository at this point in the history
  • Loading branch information
fzldn committed Sep 19, 2024
1 parent 1e6b127 commit 38a2e5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Filament/Resources/RoleResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ public static function infolist(Infolist $infolist): Infolist
return $infolist
->schema([
Infolists\Components\TextEntry::make('name'),
Infolists\Components\TextEntry::make('description')->default('-'),
Infolists\Components\TextEntry::make('description')
->placeholder(__('No description provided.')),
]);
}
}

0 comments on commit 38a2e5d

Please sign in to comment.