make global search frontend heavy

This commit is contained in:
Andras Bacsai
2025-10-08 16:53:02 +02:00
parent afd10048bd
commit 2e6e07bcc3
2 changed files with 609 additions and 575 deletions
+4
View File
@@ -81,6 +81,7 @@ class GlobalSearch extends Component
{
$this->isModalOpen = true;
$this->loadSearchableItems();
$this->loadCreatableItems();
$this->dispatch('search-modal-opened');
}
@@ -973,6 +974,9 @@ class GlobalSearch extends Component
]);
}
// Merge with services
$items = $items->merge(collect($this->services));
$this->creatableItems = $items->toArray();
}