forgejo/web_src/js/features
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
..
admin Fix admin notice view-detail (#30450) (#30458) 2024-04-15 16:41:44 +02:00
comp s/Gitea/Forgejo in various log messages and comments 2024-04-22 14:41:17 +00:00
autofocus-end.js
captcha.js
citation.js
clipboard.js
code-frequency.js
codeeditor.js Disable enter key for accepting code completion in Monaco (#30548) (#30559) 2024-04-21 18:11:02 +02:00
colorpicker.js
common-global.js
common-issue-list.js
common-issue-list.test.js
common-organization.js
contextpopup.js
contributors.js
copycontent.js
dropzone.js
emoji.js
eventsource.sharedworker.js
file-fold.js
heatmap.js
imagediff.js
install.js
notification.js
org-team.js
pull-view-file.js
recent-commits.js
repo-branch.js
repo-code.js
repo-code.test.js
repo-commit.js
repo-common.js [BUG] Fix archive button on release page 2024-04-16 06:24:39 +00:00
repo-diff-commit.js
repo-diff-commitselect.js
repo-diff-filetree.js
repo-diff.js
repo-editor.js
repo-findfile.js
repo-findfile.test.js
repo-graph.js
repo-home.js
repo-issue-content.js
repo-issue-list.js
repo-issue-pr-form.js
repo-issue-pr-status.js
repo-issue.js Fix the WIP prefix toggling on the sidebar 2024-04-23 08:01:58 +00:00
repo-legacy.js
repo-migrate.js
repo-migration.js
repo-projects.js
repo-release.js
repo-search.js
repo-settings.js
repo-template.js
repo-unicode-escape.js
repo-wiki.js
sshkey-helper.js
stopwatch.js
tablesort.js
tribute.js
user-auth-webauthn.js
user-auth.js
user-settings.js