Rename query param

This commit is contained in:
Mathieu Fenniak 2025-03-27 19:16:16 -06:00 committed by Gusted
parent fa000895ec
commit 5c4265e743
2 changed files with 3 additions and 3 deletions

View file

@ -68,7 +68,7 @@ func List(ctx *context.Context) {
curWorkflow := ctx.FormString("workflow")
ctx.Data["CurWorkflow"] = curWorkflow
listOnly := ctx.FormBool("listonly")
listInner := ctx.FormBool("list_inner")
var workflows []Workflow
if empty, err := ctx.Repo.GitRepo.IsEmpty(); err != nil {
@ -253,7 +253,7 @@ func List(ctx *context.Context) {
ctx.Data["Page"] = pager
ctx.Data["HasWorkflowsOrRuns"] = len(workflows) > 0 || len(runs) > 0
if listOnly {
if listInner {
ctx.HTML(http.StatusOK, tplListActionsInner)
} else {
ctx.HTML(http.StatusOK, tplListActions)

View file

@ -7,7 +7,7 @@
{{/* Refresh the list every interval (30s) unless the document isn't visible or a dropdown is open; refresh
if visibility changes as well. */}}
<div
hx-get="?workflow={{$.CurWorkflow}}&actor={{$.CurActor}}&status={{$.CurStatus}}&listonly=true"
hx-get="?workflow={{$.CurWorkflow}}&actor={{$.CurActor}}&status={{$.CurStatus}}&list_inner=true"
hx-swap="morph:innerHTML"
hx-trigger="every 30s [document.visibilityState === 'visible' && noActiveDropdowns()], visibilitychange[document.visibilityState === 'visible'] from:document"
hx-indicator="#reloading-indicator">