make global search frontend heavy
This commit is contained in:
parent
afd10048bd
commit
2e6e07bcc3
2 changed files with 609 additions and 575 deletions
|
|
@ -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
Loading…
Reference in a new issue