Search issues when requesting app

This commit is contained in:
Sam Carlton 2020-11-13 12:43:13 -06:00
parent dad8f955d4
commit a2c29bc549
3 changed files with 18 additions and 3 deletions

View file

@ -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

View file

@ -8,10 +8,12 @@
Apps that are reported to support Apple Silicon
</h2>
<Search />
<Search
@update:query="query = $event"
/>
<LinkButton
href="https://github.com/ThatGuySam/doesitarm/issues"
:href="`https://github.com/ThatGuySam/doesitarm/issues?q=is%3Aissue+${this.query}`"
>
Request an App
</LinkButton>
@ -30,6 +32,11 @@ export default {
Search,
LinkButton
},
data: function () {
return {
query: ''
}
},
computed: {
appList() {
return appList

View file

@ -14,10 +14,11 @@
<Search
:app-list="sectionAppList"
:quick-buttons="[]"
@update:query="query = $event"
/>
<LinkButton
href="https://github.com/ThatGuySam/doesitarm/issues"
:href="`https://github.com/ThatGuySam/doesitarm/issues?q=is%3Aissue+${this.query}`"
>
Request an App
</LinkButton>
@ -43,6 +44,11 @@ export default {
Search,
LinkButton
},
data: function () {
return {
query: ''
}
},
computed: {
section () {
return appList.find(app => {