Skip to content

Commit

Permalink
feat: add pager to abstract class for bottom bar (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
64knl committed Feb 25, 2024
1 parent 8773702 commit 1f34314
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Http/Controllers/Assets/TableOverviewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function index(Request $request, Table $table)
$pager = new LayoutPager(totalItems: $siteTableRowsPaginator->total(), itemsPerPage: request()->query('pitems') ?? $table->properties->itemsPerPage ?? 25);

$bar = $editor->getTopBar($pager);
$bottomBar = $editor->getBottomBar();
$bottomBar = $editor->getBottomBar($pager);

$widget = new LayoutWidget(__('siteboss::ui.overview'));
$widget->noPadding();
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Editor/AbstractEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function __construct(protected TableService $ts)

abstract public function getTopBar(LayoutPager $pager): LayoutBar;

abstract public function getBottomBar(): LayoutBar;
abstract public function getBottomBar(LayoutPager $pager): LayoutBar;

abstract public function getBreadCrumbs(): LayoutBreadCrumb;

Expand Down
2 changes: 1 addition & 1 deletion src/Models/Editor/DefaultEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function getTopBar(LayoutPager $pager): LayoutBar
return $bar;
}

public function getBottomBar(): LayoutBar
public function getBottomBar(LayoutPager $pager): LayoutBar
{
$bar = $this->addNewButton(new LayoutBar);

Expand Down

0 comments on commit 1f34314

Please sign in to comment.