Skip to content

Commit

Permalink
Merge pull request #24 from pxlrbt/fix/spotlight-collision
Browse files Browse the repository at this point in the history
add `getBreadcrumb()` method
  • Loading branch information
pxlrbt authored Oct 17, 2023
2 parents 3247e25 + 26a5777 commit 539a0d2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions resources/lang/ar/activities.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

return [
'breadcrumb' => 'سجل عمليات',

'title' => 'سجل عمليات :record',

'default_datetime_format' => 'Y-m-d, H:i:s',
Expand Down
2 changes: 2 additions & 0 deletions resources/lang/de/activities.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

return [
'breadcrumb' => 'Historie',

'title' => 'Historie :record',

'default_datetime_format' => 'd.m.Y, H:i:s \U\h\r',
Expand Down
2 changes: 2 additions & 0 deletions resources/lang/en/activities.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

return [
'breadcrumb' => 'History',

'title' => 'History :record',

'default_datetime_format' => 'Y-m-d, H:i:s',
Expand Down
7 changes: 6 additions & 1 deletion src/Pages/ListActivities.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ abstract class ListActivities extends Page implements HasForms
{
use CanPaginateRecords;
use HandlesPagination;
use InteractsWithRecord;
use InteractsWithFormActions;
use InteractsWithRecord;

protected static string $view = 'filament-activity-log::pages.list-activities';

Expand All @@ -31,6 +31,11 @@ public function mount($record)
$this->record = $this->resolveRecord($record);
}

public function getBreadcrumb(): string
{
return static::$breadcrumb ?? __('filament-activity-log::activities.breadcrumb');
}

public function getTitle(): string
{
return __('filament-activity-log::activities.title', ['record' => $this->getRecordTitle()]);
Expand Down

0 comments on commit 539a0d2

Please sign in to comment.