mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-19 09:51:37 +00:00
Merge pull request #133 from vitodeploy/fix-php-ini-update
fix php ini update bug
This commit is contained in:
commit
f68d6c7ca2
@ -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
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
@props([
|
@props([
|
||||||
"interval" => "30s",
|
"interval" => "7s",
|
||||||
"id",
|
"id",
|
||||||
"target" => null,
|
"target" => null,
|
||||||
])
|
])
|
||||||
|
@ -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>
|
||||||
|
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user