Skip to content

Commit

Permalink
fix(ui): add hx-boost to fix inconsistent browser back/forth
Browse files Browse the repository at this point in the history
Signed-off-by: christoph <[email protected]>
  • Loading branch information
christophenne authored and kosmoz committed Apr 16, 2024
1 parent cd08eb9 commit dc89c02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/web/templates/components/pkg-overview-btn.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{{ define "pkg-overview-btn" }}
<span id="{{ .ButtonId }}">
{{ if eq .Status nil }}
<a href="/packages/{{ .PackageName }}#configuration" class="btn btn-primary btn-sm w-100">Install</a>
<a href="/packages/{{ .PackageName }}#configuration" hx-boost="true" class="btn btn-primary btn-sm w-100"
>Install</a
>
{{ else if eq .Status.Status "Pending" }}
<button type="button" class="btn btn-primary btn-sm fw-medium w-100" disabled>Pending</button>
{{ else if eq .Status.Status "Failed" }}
Expand Down

0 comments on commit dc89c02

Please sign in to comment.