Skip to content

Commit

Permalink
Merge pull request #10 from awcodes/fix/extra-badge-calls
Browse files Browse the repository at this point in the history
fix duplicate calls caused by badge count
  • Loading branch information
awcodes authored Sep 8, 2022
2 parents ae159ba + 631c9d3 commit 4514950
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions resources/views/components/create-menu.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ class="relative"
x-transition:leave-start="translate-y-0 opacity-100"
x-transition:leave-end="-translate-y-1 opacity-0"
x-cloak
class="absolute hidden z-10 mt-2 overflow-y-auto shadow-xl rounded-xl w-52 top-full"
style="max-height: 15rem;"
class="absolute hidden z-10 mt-2 overflow-y-auto shadow-xl rounded-xl top-full"
style="max-height: 15rem; min-width: 208px;"
>
<ul @class([
'py-1 space-y-1 overflow-hidden bg-white shadow rounded-xl',
Expand Down
6 changes: 3 additions & 3 deletions src/FilamentQuickCreateServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ public function getFilamentResouces()
$resource = App::make($resource);
$route = $resource->getRouteBaseName() . '.create';
if ($resource->canCreate() && Route::has($route)) {
$navItems = $resource->getNavigationItems();
$icon = invade($resource)->getNavigationIcon();
return [
'label' => Str::title($resource->getModelLabel()),
'icon' => $navItems[0]->getIcon(),
'label' => Str::ucfirst($resource->getModelLabel()),
'icon' => $icon,
'url' => route($route)
];
}
Expand Down

0 comments on commit 4514950

Please sign in to comment.