diff --git a/components/search.vue b/components/search.vue index 147cd72..1cd5bd5 100644 --- a/components/search.vue +++ b/components/search.vue @@ -230,6 +230,8 @@ export default { // Snap results scroll position back to top this.$refs['search-container'].scrollTop = 0 + this.$emit('update:query', rawQuery) + // If our query is empty // then bail diff --git a/pages/index.vue b/pages/index.vue index 8cc3458..a57de8c 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -8,10 +8,12 @@ Apps that are reported to support Apple Silicon - + Request an App @@ -30,6 +32,11 @@ export default { Search, LinkButton }, + data: function () { + return { + query: '' + } + }, computed: { appList() { return appList diff --git a/pages/kind/_slug.vue b/pages/kind/_slug.vue index 459a029..ff40c59 100644 --- a/pages/kind/_slug.vue +++ b/pages/kind/_slug.vue @@ -14,10 +14,11 @@ Request an App @@ -43,6 +44,11 @@ export default { Search, LinkButton }, + data: function () { + return { + query: '' + } + }, computed: { section () { return appList.find(app => {