0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-31 10:58:20 -05:00
forgejo/templates/repo/issue
Gergely Nagy a93a99eef3
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>
2024-04-23 01:41:35 +02:00
..
fields Migrate gt-hidden to tw-hidden (#30046) 2024-03-30 07:17:29 +01:00
labels
milestone
view_content Fix the WIP prefix toggling on the sidebar 2024-04-23 01:41:35 +02:00
branch_selector_field.tmpl
card.tmpl [GITEA] Apply changes to archived labels 2024-04-01 17:46:02 +05:00
choose.tmpl
comment_tab.tmpl
filter_actions.tmpl
filter_list.tmpl
filters.tmpl
label_precolors.tmpl
labels.tmpl
list.tmpl
milestone_issues.tmpl [UI] Refactor display of milestone issue list header 2024-04-20 14:11:38 +05:00
milestone_new.tmpl
milestones.tmpl [UI] Fix milestone header inconsistencies with issues/PRs 2024-04-20 14:06:26 +05:00
navbar.tmpl
new.tmpl
new_form.tmpl
openclose.tmpl
search.tmpl Migrate gt-hidden to tw-hidden (#30046) 2024-03-30 07:17:29 +01:00
view.tmpl
view_content.tmpl
view_title.tmpl