This commit is contained in:
Bozhidar 2024-04-30 23:16:38 +03:00
parent 472d4a32d0
commit f50776e8b6
3 changed files with 6 additions and 6 deletions

View file

@ -60,7 +60,7 @@ class Modules extends Page
}
}
public function openUnistallModal($module)
public function openUninstallModal($module)
{
$findModule = Module::where('name', $module)->first();
if ($findModule) {

View file

@ -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

View file

@ -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');
}
}