Skip to content

Commit

Permalink
Merge pull request #137 from pinkary-project/feature/delete-questions
Browse files Browse the repository at this point in the history
[Feature]: Add delete button to question dropdown
  • Loading branch information
nunomaduro authored Apr 5, 2024
2 parents c8c1a77 + 0806b3e commit 728cb15
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions resources/views/livewire/questions/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ class="h-10 w-10 rounded-full"
<span>Unpin</span>
</x-dropdown-button>
@endif
<x-dropdown-button
wire:click="ignore"
wire:confirm="Are you sure you want to delete this question?"
class="flex items-center gap-1.5">
<x-icons.trash class="h-4 w-4" />
<span>Delete</span>
</x-dropdown-button>
</x-slot>
</x-dropdown>
@endif
Expand Down

0 comments on commit 728cb15

Please sign in to comment.