hide vorlagen in text edit (zu kompliziert für user)

This commit is contained in:
salam committed 2026-05-20 10:27:49 +02:00
1 parent febe2132cc
commit df73411d06
2 files changed
+66 -66

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ class ShowHelpInhalt
{
return Action::make('help')
->icon('phosphor-question')
->hidden(fn ($record): bool => (! $record->inhaltsverzeichnis->hilfe_titel && ! $record->inhaltsverzeichnis->hilfe_description || ! $record->inhaltsverzeichnis->hilfe_image) ? true : false)
->hidden(fn ($record): bool => (! $record?->inhaltsverzeichnis->hilfe_titel && ! $record?->inhaltsverzeichnis->hilfe_description || ! $record?->inhaltsverzeichnis->hilfe_image) ? true : false)
->tooltip(fn ($record): View => view('pages.helpinhalt')->with('record', $record))
->iconButton();
}