Global search - fix label not found

This commit is contained in:
John R. Supplee 2021-01-16 21:07:49 +02:00
parent 7a5aa469cd
commit 7b8d67de63
3 changed files with 5 additions and 1 deletions

View file

@ -76,6 +76,9 @@ BlazeComponent.extendComponent({
errors.notFound.lists.forEach(list => {
messages.push({ tag: 'list-title-not-found', value: list });
});
errors.notFound.labels.forEach(label => {
messages.push({ tag: 'label-not-found', value: label });
});
errors.notFound.users.forEach(user => {
messages.push({ tag: 'user-username-not-found', value: user });
});

View file

@ -868,6 +868,7 @@
"board-title-not-found": "Board '%s' not found.",
"swimlane-title-not-found": "Swimlane '%s' not found.",
"list-title-not-found": "List '%s' not found.",
"label-not-found": "Label '%s' not found.",
"user-username-not-found": "Username '%s' not found.",
"globalSearch-title": "Search All Boards",
"no-cards-found": "No Cards Found",

View file

@ -1872,7 +1872,7 @@ Cards.globalSearch = queryParams => {
});
});
} else {
errors.notFound.labels.push({ tag: 'label', value: label });
errors.notFound.labels.push(label);
}
}