Skip to content

Commit d6459d0

Browse files
committed
remove unused query parameters
1 parent 64346dc commit d6459d0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

templates/repo/actions/workflow_dispatch.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<label>{{ctx.Locale.Tr "actions.workflow.from_ref"}}:</label>
1212
</span>
1313
<div class="ui inline field dropdown button select-branch branch-selector-dropdown ellipsis-items-nowrap">
14-
<input type="hidden" name="ref" hx-sync="this:replace" hx-target="#runWorkflowDispatchModalInputs" hx-swap="innerHTML" hx-get="{{$.Link}}/workflow-dispatch-inputs?workflow={{$.CurWorkflow}}&actor={{$.CurActor}}&status={{.Status}}" hx-trigger="change" value="refs/heads/{{index .Branches 0}}">
14+
<input type="hidden" name="ref" hx-sync="this:replace" hx-target="#runWorkflowDispatchModalInputs" hx-swap="innerHTML" hx-get="{{$.Link}}/workflow-dispatch-inputs?workflow={{$.CurWorkflow}}" hx-trigger="change" value="refs/heads/{{index .Branches 0}}">
1515
{{svg "octicon-git-branch" 14}}
1616
<div class="default text">{{index .Branches 0}}</div>
1717
{{svg "octicon-triangle-down" 14 "dropdown icon"}}

templates/repo/actions/workflow_dispatch_inputs.tmpl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
<div class="ui field {{if .Required}}required{{end}}">
1010
{{if eq .Type "choice"}}
1111
<label>{{or .Description .Name}}:</label>
12-
<select class="ui selection type dropdown" name="{{.Name}}">
12+
{{/* htmx won't initalize the fomantic dropdown, so it is a standard "select" input */}}
13+
<select class="ui selection dropdown" name="{{.Name}}">
1314
{{range .Options}}
14-
<option value="{{.}}" {{if eq $item.Default .}}selected{{end}} >{{.}}</option>
15+
<option value="{{.}}" {{if eq $item.Default .}}selected{{end}}>{{.}}</option>
1516
{{end}}
1617
</select>
1718
{{else if eq .Type "boolean"}}

0 commit comments

Comments
 (0)