diff --git a/client/components/main/globalSearch.js b/client/components/main/globalSearch.js index 2a1c9da32..0d9f1c80c 100644 --- a/client/components/main/globalSearch.js +++ b/client/components/main/globalSearch.js @@ -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 }); }); diff --git a/i18n/en.i18n.json b/i18n/en.i18n.json index 6fac20a43..9ad9fbcaf 100644 --- a/i18n/en.i18n.json +++ b/i18n/en.i18n.json @@ -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", diff --git a/models/cards.js b/models/cards.js index a2453535a..dfc715f7b 100644 --- a/models/cards.js +++ b/models/cards.js @@ -1872,7 +1872,7 @@ Cards.globalSearch = queryParams => { }); }); } else { - errors.notFound.labels.push({ tag: 'label', value: label }); + errors.notFound.labels.push(label); } }