Merge pull request #133 from vitodeploy/fix-php-ini-update

fix php ini update bug
This commit is contained in:
Saeed Vaziry 2024-03-24 15:19:06 +01:00 committed by GitHub
commit f68d6c7ca2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 45 additions and 41 deletions

View File

@ -71,7 +71,9 @@ public function updateIni(Server $server, Request $request): RedirectResponse
Toast::success('PHP ini updated!'); Toast::success('PHP ini updated!');
return back(); return back()->with([
'ini' => $request->input('ini'),
]);
} }
public function uninstall(Server $server, Request $request): RedirectResponse public function uninstall(Server $server, Request $request): RedirectResponse

View File

@ -1,5 +1,5 @@
@props([ @props([
"interval" => "30s", "interval" => "7s",
"id", "id",
"target" => null, "target" => null,
]) ])

View File

@ -6,6 +6,7 @@
</x-slot> </x-slot>
</x-card-header> </x-card-header>
<x-live id="php-default-cli">
<a class="block"> <a class="block">
<x-item-card> <x-item-card>
<div class="flex items-start justify-center"> <div class="flex items-start justify-center">
@ -47,4 +48,5 @@ class="cursor-pointer"
</div> </div>
</x-item-card> </x-item-card>
</a> </a>
</x-live>
</div> </div>

View File

@ -39,7 +39,7 @@ class="cursor-pointer"
</x-dropdown-link> </x-dropdown-link>
<x-dropdown-link <x-dropdown-link
class="cursor-pointer" class="cursor-pointer"
x-on:click="$dispatch('open-modal', 'update-php-ini'); document.getElementById('ini').value = 'Loading...';" x-on:click="version = '{{ $php->version }}'; $dispatch('open-modal', 'update-php-ini'); document.getElementById('ini').value = 'Loading...';"
hx-get="{{ route('servers.php.get-ini', ['server' => $server, 'version' => $php->version]) }}" hx-get="{{ route('servers.php.get-ini', ['server' => $server, 'version' => $php->version]) }}"
hx-swap="outerHTML" hx-swap="outerHTML"
hx-target="#update-php-ini-form" hx-target="#update-php-ini-form"