From e1ac97140a43ca0e2d930f44ec0b0b9c4c3f5754 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Sun, 20 Sep 2020 00:55:50 -0500 Subject: [PATCH] =?UTF-8?q?Search=20app=E2=80=99s=20section=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/search.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/components/search.vue b/components/search.vue index c1bb1cd..5217d03 100644 --- a/components/search.vue +++ b/components/search.vue @@ -111,7 +111,7 @@ export default { // results: [], titleStartsWithResults: [], titleContainsResults: [], - descriptionContainsResults: [], + sectionNameContainsResults: [], // store: overlayStore.state } }, @@ -122,7 +122,7 @@ export default { return [ ...this.titleStartsWithResults, ...this.titleContainsResults, - ...this.descriptionContainsResults + ...this.sectionNameContainsResults ] }, hasSearchInputText () { @@ -160,10 +160,10 @@ export default { } return matches }, - descriptionContains (query, app) { - const matches = app.description.toLowerCase().includes(query) + sectionNameContains (query, app) { + const matches = app.sectionName.toLowerCase().includes(query) if (matches) { - this.descriptionContainsResults.push(app) + this.sectionNameContainsResults.push(app) } return matches }, @@ -177,7 +177,7 @@ export default { // Clear any results from before this.titleStartsWithResults = [] this.titleContainsResults = [] - this.descriptionContainsResults = [] + this.sectionNameContainsResults = [] // Snap results scroll position back to top @@ -195,7 +195,7 @@ export default { const matchers = [ this.titleStartsWith, this.titleContains, - // this.descriptionContains + this.sectionNameContains ] // Run through our search priorities