WEB - DELETE ISSUE
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user