0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-05 22:20:21 -05:00
forgejo/templates/repo/issue
Gergely Nagy e947fa7acc Fix the WIP prefix toggling on the sidebar
The WIP prefix toggling link on the sidebar only supported toggling
the *first* prefix specified in
`[repository.pullrequest].WORK_IN_PROGRESS_PREFIXES`. If the pull
request had a title with any other prefix, the first prefix listed in
the config was added (and then removed on toggling it off).

This little change makes all of the prefixes available for the
JavaScript function that does the toggling, and changes said function to
find the used prefix first, and toggle that.

When adding the prefix, it will still default to adding the first one
listed in the configuration, but it will happily remove any others if
those are present.

Fixes #3377.

Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
(cherry picked from commit a93a99eef3)
2024-04-23 08:01:58 +00:00
..
fields
labels Prevent flash of dropdown menu on labels list (#30215) (#30216) 2024-04-08 11:39:53 +02:00
milestone
view_content Fix the WIP prefix toggling on the sidebar 2024-04-23 08:01:58 +00:00
branch_selector_field.tmpl
card.tmpl
choose.tmpl Fix spacing in issue navbar (#30238) (#30242) 2024-04-08 11:44:09 +02:00
comment_tab.tmpl
filter_actions.tmpl
filter_list.tmpl add label filters in org/{org_name}/issues 2024-04-04 17:37:56 +00:00
filters.tmpl
label_precolors.tmpl
labels.tmpl Fix spacing in issue navbar (#30238) (#30242) 2024-04-08 11:44:09 +02:00
list.tmpl
milestone_issues.tmpl
milestone_new.tmpl Fix spacing in issue navbar (#30238) (#30242) 2024-04-08 11:44:09 +02:00
milestones.tmpl
navbar.tmpl
new.tmpl
new_form.tmpl
openclose.tmpl
search.tmpl
view.tmpl
view_content.tmpl
view_title.tmpl