mirror of
https://github.com/go-gitea/gitea.git
synced 2025-01-31 09:41:28 +02:00
Backport #33447 by wxiaoguang Just a quick fix, fix #33444 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
parent
a8eaf43f97
commit
9780da583d
@ -15,8 +15,9 @@
|
|||||||
<i class="icon">{{svg "octicon-search" 16}}</i>
|
<i class="icon">{{svg "octicon-search" 16}}</i>
|
||||||
<input type="text" placeholder="{{ctx.Locale.Tr "repo.issues.filter_assignees"}}">
|
<input type="text" placeholder="{{ctx.Locale.Tr "repo.issues.filter_assignees"}}">
|
||||||
</div>
|
</div>
|
||||||
<div class="item clear-selection">{{ctx.Locale.Tr "repo.issues.new.clear_assignees"}}</div>
|
|
||||||
<div class="scrolling menu flex-items-block">
|
<div class="scrolling menu flex-items-block">
|
||||||
|
<div class="item clear-selection">{{ctx.Locale.Tr "repo.issues.new.clear_assignees"}}</div>
|
||||||
|
<div class="divider"></div>
|
||||||
{{range $data.CandidateAssignees}}
|
{{range $data.CandidateAssignees}}
|
||||||
<a class="item" href="#" data-value="{{.ID}}">
|
<a class="item" href="#" data-value="{{.ID}}">
|
||||||
<span class="item-check-mark">{{svg "octicon-check"}}</span>
|
<span class="item-check-mark">{{svg "octicon-check"}}</span>
|
||||||
|
@ -16,8 +16,9 @@
|
|||||||
<i class="icon">{{svg "octicon-search" 16}}</i>
|
<i class="icon">{{svg "octicon-search" 16}}</i>
|
||||||
<input type="text" placeholder="{{ctx.Locale.Tr "repo.issues.filter_labels"}}">
|
<input type="text" placeholder="{{ctx.Locale.Tr "repo.issues.filter_labels"}}">
|
||||||
</div>
|
</div>
|
||||||
<a class="item clear-selection" href="#">{{ctx.Locale.Tr "repo.issues.new.clear_labels"}}</a>
|
|
||||||
<div class="scrolling menu">
|
<div class="scrolling menu">
|
||||||
|
<a class="item clear-selection" href="#">{{ctx.Locale.Tr "repo.issues.new.clear_labels"}}</a>
|
||||||
|
<div class="divider"></div>
|
||||||
{{$previousExclusiveScope := "_no_scope"}}
|
{{$previousExclusiveScope := "_no_scope"}}
|
||||||
{{range $data.RepoLabels}}
|
{{range $data.RepoLabels}}
|
||||||
{{$exclusiveScope := .ExclusiveScope}}
|
{{$exclusiveScope := .ExclusiveScope}}
|
||||||
|
@ -18,9 +18,9 @@
|
|||||||
<i class="icon">{{svg "octicon-search"}}</i>
|
<i class="icon">{{svg "octicon-search"}}</i>
|
||||||
<input type="text" placeholder="{{ctx.Locale.Tr "repo.issues.filter_milestones"}}">
|
<input type="text" placeholder="{{ctx.Locale.Tr "repo.issues.filter_milestones"}}">
|
||||||
</div>
|
</div>
|
||||||
<div class="divider"></div>
|
|
||||||
<div class="item clear-selection">{{ctx.Locale.Tr "repo.issues.new.clear_milestone"}}</div>
|
|
||||||
<div class="scrolling menu">
|
<div class="scrolling menu">
|
||||||
|
<div class="item clear-selection">{{ctx.Locale.Tr "repo.issues.new.clear_milestone"}}</div>
|
||||||
|
<div class="divider"></div>
|
||||||
{{if $data.OpenMilestones}}
|
{{if $data.OpenMilestones}}
|
||||||
<div class="header">{{ctx.Locale.Tr "repo.issues.filter_milestone_open"}}</div>
|
<div class="header">{{ctx.Locale.Tr "repo.issues.filter_milestone_open"}}</div>
|
||||||
{{range $data.OpenMilestones}}
|
{{range $data.OpenMilestones}}
|
||||||
|
@ -17,8 +17,9 @@
|
|||||||
<input type="text" placeholder="{{ctx.Locale.Tr "repo.issues.filter_projects"}}">
|
<input type="text" placeholder="{{ctx.Locale.Tr "repo.issues.filter_projects"}}">
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
<div class="item clear-selection">{{ctx.Locale.Tr "repo.issues.new.clear_projects"}}</div>
|
|
||||||
<div class="scrolling menu">
|
<div class="scrolling menu">
|
||||||
|
<div class="item clear-selection">{{ctx.Locale.Tr "repo.issues.new.clear_projects"}}</div>
|
||||||
|
<div class="divider"></div>
|
||||||
{{if $data.OpenProjects}}
|
{{if $data.OpenProjects}}
|
||||||
<div class="header">{{ctx.Locale.Tr "repo.issues.new.open_projects"}}</div>
|
<div class="header">{{ctx.Locale.Tr "repo.issues.new.open_projects"}}</div>
|
||||||
{{range $data.OpenProjects}}
|
{{range $data.OpenProjects}}
|
||||||
|
@ -22,10 +22,13 @@ A sidebar combo (dropdown+list) is like this:
|
|||||||
When the selected items change, the `combo-value` input will be updated.
|
When the selected items change, the `combo-value` input will be updated.
|
||||||
If there is `data-update-url`, it also calls backend to attach/detach the changed items.
|
If there is `data-update-url`, it also calls backend to attach/detach the changed items.
|
||||||
|
|
||||||
Also, the changed items will be syncronized to the `ui list` items.
|
Also, the changed items will be synchronized to the `ui list` items.
|
||||||
|
|
||||||
The items with the same data-scope only allow one selected at a time.
|
The items with the same data-scope only allow one selected at a time.
|
||||||
|
|
||||||
The dropdown selection could work in 2 modes:
|
The dropdown selection could work in 2 modes:
|
||||||
* single: only one item could be selected, it updates immediately when the item is selected.
|
* single: only one item could be selected, it updates immediately when the item is selected.
|
||||||
* multiple: multiple items could be selected, it defers the update until the dropdown is hidden.
|
* multiple: multiple items could be selected, it defers the update until the dropdown is hidden.
|
||||||
|
|
||||||
|
When using "scrolling menu", the items must be in the same level,
|
||||||
|
otherwise keyboard (ArrowUp/ArrowDown/Enter) won't work.
|
||||||
|
Loading…
Reference in New Issue
Block a user