Skip to content

Commit f520473

Browse files
[6.x] Use collection icon on empty state page (#13391)
1 parent 7c06bba commit f520473

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

resources/js/pages/collections/Empty.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import useArchitecturalBackground from '@/pages/layout/architectural-background.
55
useArchitecturalBackground();
66
77
const props = defineProps([
8+
'icon',
89
'title',
910
'blueprints',
1011
'canEdit',
@@ -23,7 +24,7 @@ const props = defineProps([
2324

2425
<header class="py-8 mt-8 text-center starting-style-transition" v-cloak>
2526
<h1 class="text-[25px] font-medium antialiased flex justify-center items-center gap-2 sm:gap-3">
26-
<ui-icon name="collections" class="size-5 text-gray-500"></ui-icon>
27+
<ui-icon :name="icon" class="size-5 text-gray-500"></ui-icon>
2728
<span v-text="__(title)" />
2829
</h1>
2930
</header>

src/Http/Controllers/CP/Collections/CollectionsController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ public function show(Request $request, $collection)
202202
if ($collection->queryEntries()->count() === 0) {
203203
return Inertia::render('collections/Empty', [
204204
...Arr::only($props, [
205+
'icon',
205206
'title',
206207
'blueprints',
207208
'canEdit',

0 commit comments

Comments
 (0)