WEB - DELETE ISSUE

This commit is contained in:
Ine Maria Nilssen Aanonsen
2026-02-24 15:33:58 +01:00
parent be56123955
commit 0c56c4c2b6
5 changed files with 60 additions and 3 deletions

View File

@@ -57,7 +57,28 @@ templ DashboardPage(props DashboardPageProps) {
<div class="w-full lg:w-1/2 xl:w-[55%] p-4 overflow-auto">
if props.SelectedIssue != nil {
<div class="max-w-2xl">
<div class="max-w-2xl space-y-4">
<div class="flex flex-wrap items-center gap-2">
<a
class="btn btn-ghost btn-sm"
href={ "/issues/" + props.SelectedIssue.ID }
hx-get={ "/issues/" + props.SelectedIssue.ID }
hx-target="main"
hx-swap="innerHTML"
hx-push-url="true"
>
View full page
</a>
<button
type="button"
class="btn btn-error btn-sm btn-outline"
hx-delete={ "/issues/" + props.SelectedIssue.ID }
hx-confirm="Are you sure you want to delete this issue? This action cannot be undone."
hx-target="body"
>
Delete issue
</button>
</div>
@IssueDetailCard(IssueDetailCardProps{
Issue: *props.SelectedIssue,
DisplayOwner: props.DisplayOwner,