From 93cc221db08b54ae66317e12105ae0d77adb1cb0 Mon Sep 17 00:00:00 2001 From: Lewis Raggett <46108903+redsquirrelstudio@users.noreply.github.com> Date: Wed, 30 Oct 2024 14:12:34 +0000 Subject: [PATCH 1/2] Added option to customise icon when there are no bookmarks Set the default icon to a heroicon for consistancy --- config/zeus-delia.php | 1 + resources/views/filament/hooks/topbar.blade.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/zeus-delia.php b/config/zeus-delia.php index a355e2a..24b0bce 100644 --- a/config/zeus-delia.php +++ b/config/zeus-delia.php @@ -15,6 +15,7 @@ 'dropdown' => [ 'title' => 'Bookmarks', 'icon' => 'heroicon-m-bookmark-square', + 'empty_icon' => 'heroicon-m-bookmark-slash' ], /** diff --git a/resources/views/filament/hooks/topbar.blade.php b/resources/views/filament/hooks/topbar.blade.php index 770da53..59984ae 100644 --- a/resources/views/filament/hooks/topbar.blade.php +++ b/resources/views/filament/hooks/topbar.blade.php @@ -14,7 +14,7 @@ @if($bookmarks->isEmpty()) - + No Bookmarks found @else @@ -31,4 +31,4 @@ @endif - \ No newline at end of file + From 812b6fb3f6d7eef1b6b1800ece60ba8d78961237 Mon Sep 17 00:00:00 2001 From: Lewis Raggett <46108903+redsquirrelstudio@users.noreply.github.com> Date: Thu, 31 Oct 2024 07:57:57 +0000 Subject: [PATCH 2/2] Added defaults for icon config helpers --- resources/views/filament/hooks/topbar.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/filament/hooks/topbar.blade.php b/resources/views/filament/hooks/topbar.blade.php index 59984ae..e2e5d40 100644 --- a/resources/views/filament/hooks/topbar.blade.php +++ b/resources/views/filament/hooks/topbar.blade.php @@ -7,14 +7,14 @@ {{ config('zeus-delia.dropdown.title') }} @if($bookmarks->isEmpty()) - + No Bookmarks found @else