mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-04-08 02:31:36 +02:00
Rename query param
This commit is contained in:
parent
fa000895ec
commit
5c4265e743
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Add table
Reference in a new issue