Skip to content

Commit

Permalink
fix translatable input check app translatability
Browse files Browse the repository at this point in the history
  • Loading branch information
lpheller committed Oct 5, 2021
1 parent 8d03e05 commit aed12c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Macros/CrudNavMacro.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function register()
CrudShow::macro('nav', function ($name, Closure $closure = null) {
return $this->list($name)->previewTitle('{title}')->form(function ($form) use ($closure) {
// Title field.
$form->input('title')->title('Link Text')->translatable()->width(8);
$form->input('title')->title('Link Text')->translatable(lit()->isAppTranslatable())->width(8);

// External.
$form->boolean('external')->title('External Link');
Expand Down

0 comments on commit aed12c1

Please sign in to comment.