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

View file

@ -81,6 +81,7 @@ public function openSearchModal()
{
$this->isModalOpen = true;
$this->loadSearchableItems();
$this->loadCreatableItems();
$this->dispatch('search-modal-opened');
}
@ -973,6 +974,9 @@ private function loadCreatableItems()
]);
}
// Merge with services
$items = $items->merge(collect($this->services));
$this->creatableItems = $items->toArray();
}

File diff suppressed because it is too large Load diff