Skip to content

Commit

Permalink
Sorted tree items and added Italian translation
Browse files Browse the repository at this point in the history
  • Loading branch information
marco76tv committed Feb 5, 2024
1 parent 7640661 commit eaee204
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function sortNavigation(string $targetStatePath, array $targetItemsStateP

data_set($this, $targetStatePath, $items);
Notification::make()
->title('Sorted !')
->title(trans('ui::filament-navigation.items.sorted'))
->success()
->send();
}
Expand Down Expand Up @@ -152,7 +152,7 @@ public function storeChildItem(Model $record, array $data): void
$parent = data_get($this, $this->mountedChildTarget);
$data['parent_id'] = $parent['id'];
/*
dddx([
dddx([f
'data' => $data,
'parent' => $parent,
'$this->mountedChildTarget' => $this->mountedChildTarget,
Expand Down Expand Up @@ -224,7 +224,7 @@ function (array $data, $record): void {
}
)
->requiresConfirmation()
->visible($this->mountedItem != null),
->visible(null != $this->mountedItem),
Action::make('item')
->mountUsing(
function (ComponentContainer $form): void {
Expand Down
1 change: 1 addition & 0 deletions Resources/lang/it/filament-navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
'indent' => 'Aumenta rientro',
'dedent' => 'Riduci rientro',
'remove' => 'Rimuovi',
'sorted' => 'Ordinato',
],

'items-modal' => [
Expand Down

0 comments on commit eaee204

Please sign in to comment.