mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-10-10 19:32:02 +00:00
exclude current issue from suggestion
This commit is contained in:
parent
3b0b5d0513
commit
8d30b52fc1
4 changed files with 15 additions and 4 deletions
|
@ -44,8 +44,10 @@ export function matchMention(queryText) {
|
|||
return sortAndReduce(results);
|
||||
}
|
||||
|
||||
export function matchIssue(queryText) {
|
||||
const issues = window.config.issueValues ?? [];
|
||||
export function matchIssue(queryText, currentIssue = null) {
|
||||
const issues = (window.config.issueValues ?? []).filter(
|
||||
issue => issue.number !== currentIssue
|
||||
);
|
||||
const query = queryText.toLowerCase().trim();
|
||||
|
||||
if (!query) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue