ui: hx-swap none on Run-now + truthful save banner + tailwind rebuild
Add hx-swap="none" to the three Run-now buttons (check/prune/unlock) in host_repo.html to match the existing pattern on host_sources.html and host_schedules.html. Fix all-blank admin-credentials save to redirect without ?saved= query string so no false-positive banner is shown; strengthen the corresponding test to assert Location has no ?saved=. Rebuild CSS bundle via Tailwind to pick up max-w-[640px] JIT class.
This commit is contained in:
@@ -195,6 +195,7 @@
|
||||
<div class="grid grid-cols-3 gap-3">
|
||||
<button type="button"
|
||||
hx-post="/hosts/{{$host.ID}}/repo/check"
|
||||
hx-swap="none"
|
||||
hx-confirm="Run check now ({{$m.CheckSubsetPct}}% data subset)?"
|
||||
class="btn btn-secondary"
|
||||
{{if not $page.Online}}disabled title="agent is offline"{{end}}>
|
||||
@@ -202,6 +203,7 @@
|
||||
</button>
|
||||
<button type="button"
|
||||
hx-post="/hosts/{{$host.ID}}/repo/prune"
|
||||
hx-swap="none"
|
||||
hx-confirm="Run prune now? Removes data not referenced by any snapshot — heavy operation."
|
||||
class="btn btn-secondary"
|
||||
{{if not $page.HasAdminPassword}}disabled title="set admin credentials first"{{else if not $page.Online}}disabled title="agent is offline"{{end}}>
|
||||
@@ -209,6 +211,7 @@
|
||||
</button>
|
||||
<button type="button"
|
||||
hx-post="/hosts/{{$host.ID}}/repo/unlock"
|
||||
hx-swap="none"
|
||||
hx-confirm="Clear stale repo locks?"
|
||||
class="btn btn-secondary"
|
||||
{{if not $page.Online}}disabled title="agent is offline"{{end}}>
|
||||
|
||||
Reference in New Issue
Block a user