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 // Snap results scroll position back to top
this.$refs['search-container'].scrollTop = 0 this.$refs['search-container'].scrollTop = 0
this.$emit('update:query', rawQuery)
// If our query is empty // If our query is empty
// then bail // then bail

View file

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

View file

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