fix: search services

This commit is contained in:
Andras Bacsai 2024-03-28 15:18:05 +01:00
parent 51d716253f
commit d569c8d31f
2 changed files with 7 additions and 3 deletions

View File

@ -70,6 +70,10 @@ public function updatedSelectedEnvironment()
// } // }
// } // }
public function updatedSearch()
{
$this->loadServices();
}
public function loadServices(bool $force = false) public function loadServices(bool $force = false)
{ {
try { try {

View File

@ -1,4 +1,4 @@
<div x-data x-init="$wire.loadServers" x-init="$wire.loadServices"> <div x-data x-init="$wire.loadServers">
<div class="flex flex-col gap-4 lg:flex-row "> <div class="flex flex-col gap-4 lg:flex-row ">
<h1>New Resource</h1> <h1>New Resource</h1>
<div class="w-full pb-4 lg:w-96 lg:pb-0"> <div class="w-full pb-4 lg:w-96 lg:pb-0">
@ -377,12 +377,12 @@ class="w-[4.5rem]
<div class="flex items-center gap-4" wire:init='loadServices'> <div class="flex items-center gap-4" wire:init='loadServices'>
<h2 class="py-4">Services</h2> <h2 class="py-4">Services</h2>
<x-forms.button wire:click="loadServices('force')">Reload List</x-forms.button> <x-forms.button wire:click="loadServices('force')">Reload List</x-forms.button>
<input class="input" autofocus wire:model.live.debounce.200ms="search" autofocus
placeholder="Search...">
</div> </div>
<div class="pb-4 text-xs">Trademarks Policy: The respective trademarks mentioned here are owned by the <div class="pb-4 text-xs">Trademarks Policy: The respective trademarks mentioned here are owned by the
respective respective
companies, and use of them does not imply any affiliation or endorsement.</div> companies, and use of them does not imply any affiliation or endorsement.</div>
<input class="input" autofocus wire:model.live.debounce.200ms="search" autofocus
placeholder="Search...">
@if ($loadingServices) @if ($loadingServices)
<x-loading text="Loading services..." /> <x-loading text="Loading services..." />
@else @else