mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-21 23:20:24 +00:00
update
This commit is contained in:
parent
472d4a32d0
commit
f50776e8b6
3 changed files with 6 additions and 6 deletions
|
@ -60,7 +60,7 @@ class Modules extends Page
|
|||
}
|
||||
}
|
||||
|
||||
public function openUnistallModal($module)
|
||||
public function openUninstallModal($module)
|
||||
{
|
||||
$findModule = Module::where('name', $module)->first();
|
||||
if ($findModule) {
|
||||
|
|
|
@ -84,12 +84,12 @@
|
|||
</div>
|
||||
</x-filament::dropdown.list.item>
|
||||
@if ($module['installed'])
|
||||
<x-filament::dropdown.list.item wire:key="btn-unistall-modal-{{md5($module['name'])}}" wire:click="openUnistallModal('{{$module['name']}}')">
|
||||
<x-filament::dropdown.list.item wire:key="btn-Uninstall-modal-{{md5($module['name'])}}" wire:click="openUninstallModal('{{$module['name']}}')">
|
||||
<div class="flex gap-2 items-center">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" viewBox="0 0 24 24">
|
||||
<path fill="currentColor" d="M7.615 20q-.69 0-1.152-.462T6 18.385V6H5V5h4v-.77h6V5h4v1h-1v12.385q0 .69-.462 1.152T16.385 20zm2.193-3h1V8h-1zm3.384 0h1V8h-1z"></path>
|
||||
</svg>
|
||||
Unistall
|
||||
Uninstall
|
||||
</div>
|
||||
</x-filament::dropdown.list.item>
|
||||
@endif
|
||||
|
|
|
@ -114,8 +114,8 @@ class DockerTest extends TestCase
|
|||
|
||||
$this->assertModelMissing($findDockerContainer);
|
||||
|
||||
// Unistall docker
|
||||
$modulesTest = Livewire::test(Modules::class);
|
||||
$modulesTest->call('openUnistallModal', 'Docker');
|
||||
// Uninstall docker
|
||||
// $modulesTest = Livewire::test(Modules::class);
|
||||
// $modulesTest->call('openUninstallModal', 'Docker');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue