mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-19 09:51:37 +00:00
fix php ini update bug
This commit is contained in:
parent
ca0e33be2f
commit
d504588f95
@ -71,7 +71,9 @@ public function updateIni(Server $server, Request $request): RedirectResponse
|
||||
|
||||
Toast::success('PHP ini updated!');
|
||||
|
||||
return back();
|
||||
return back()->with([
|
||||
'ini' => $request->input('ini'),
|
||||
]);
|
||||
}
|
||||
|
||||
public function uninstall(Server $server, Request $request): RedirectResponse
|
||||
|
@ -1,5 +1,5 @@
|
||||
@props([
|
||||
"interval" => "30s",
|
||||
"interval" => "7s",
|
||||
"id",
|
||||
"target" => null,
|
||||
])
|
||||
|
@ -6,6 +6,7 @@
|
||||
</x-slot>
|
||||
</x-card-header>
|
||||
|
||||
<x-live id="php-default-cli">
|
||||
<a class="block">
|
||||
<x-item-card>
|
||||
<div class="flex items-start justify-center">
|
||||
@ -47,4 +48,5 @@ class="cursor-pointer"
|
||||
</div>
|
||||
</x-item-card>
|
||||
</a>
|
||||
</x-live>
|
||||
</div>
|
||||
|
@ -39,7 +39,7 @@ class="cursor-pointer"
|
||||
</x-dropdown-link>
|
||||
<x-dropdown-link
|
||||
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-swap="outerHTML"
|
||||
hx-target="#update-php-ini-form"
|
||||
|
Loading…
x
Reference in New Issue
Block a user