fix: update rule management buttons to use index for better consistency and clarity
This commit is contained in:
@@ -588,17 +588,17 @@
|
||||
</td>
|
||||
<td class="py-3 px-4 text-sm">
|
||||
<div class="flex items-center gap-1">
|
||||
<button wire:click="toggleRule({{ $rule['pos'] }})" class="text-gray-400 hover:text-primary transition-colors p-1 hover:bg-primary/10 rounded" title="{{ $rule['enable'] ? 'Disable' : 'Enable' }}">
|
||||
<button wire:click="toggleRule({{ $index }})" class="text-gray-400 hover:text-primary transition-colors p-1 hover:bg-primary/10 rounded" title="{{ $rule['enable'] ? 'Disable' : 'Enable' }}">
|
||||
@if($rule['enable'])
|
||||
<x-ri-pause-circle-line class="size-4" />
|
||||
@else
|
||||
<x-ri-play-circle-line class="size-4" />
|
||||
@endif
|
||||
</button>
|
||||
<button wire:click="startEditRule({{ $rule['pos'] }})" class="text-gray-400 hover:text-primary transition-colors p-1 hover:bg-primary/10 rounded" title="Edit">
|
||||
<button wire:click="startEditRule({{ $index }})" class="text-gray-400 hover:text-primary transition-colors p-1 hover:bg-primary/10 rounded" title="Edit">
|
||||
<x-ri-edit-line class="size-4" />
|
||||
</button>
|
||||
<button wire:click="deleteRule({{ $rule['pos'] }})" class="text-gray-400 hover:text-error transition-colors p-1 hover:bg-error/10 rounded" title="Delete">
|
||||
<button wire:click="confirmDeleteRule({{ $index }})" class="text-gray-400 hover:text-error transition-colors p-1 hover:bg-error/10 rounded" title="Delete">
|
||||
<x-ri-delete-bin-line class="size-4" />
|
||||
</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user