File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
resources/views/livewire/forms Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 11<div class =" flex flex-wrap gap-1 px-1" >
22 @foreach ($todo -> hashtags as $hashtag )
3- <button type =" button" wire:confirm =" Are you sure you want to remove #{{ $hashtag -> name } } ?"
4- @if ($clickable ) wire:click =" removeHashtag('{{ $hashtag -> id } } ')"
5- class =" text-muted-foreground text-sm hover:text-destructive"
6- @else
7- class =" text-muted-foreground text-sm" @endif >
8- #{{ $hashtag -> name } }
9- </button >
3+ @if ($clickable )
4+ <button type =" button" wire:confirm =" Are you sure you want to remove #{{ $hashtag -> name } } ?"
5+ wire:key =" hashtag-{{ $hashtag -> id } }" wire:click =" removeHashtag('{{ $hashtag -> id } } ')"
6+ class =" text-muted-foreground text-sm hover:text-destructive" >
7+ #{{ $hashtag -> name } }
8+ </button >
9+ @else
10+ <span class =" text-muted-foreground text-sm" >
11+ #{{ $hashtag -> name } }
12+ </span >
13+ @endif
1014 @endforeach
1115</div >
You can’t perform that action at this time.
0 commit comments