Skip to content

Commit

Permalink
Merge pull request #44255 from nextcloud/fix/apps-search
Browse files Browse the repository at this point in the history
fix: Correctly add search event listener to make searching the app list work again
  • Loading branch information
susnux authored Mar 18, 2024
2 parents 4de045a + 65cb1fc commit eeb6649
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 420 deletions.
6 changes: 3 additions & 3 deletions apps/settings/src/components/AppList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -266,14 +266,14 @@ export default {
unsubscribe('nextcloud:unified-search.reset', this.resetSearch)
},

beforeCreate() {
mounted() {
subscribe('nextcloud:unified-search.search', this.setSearch)
subscribe('nextcloud:unified-search.reset', this.resetSearch)
},

methods: {
setSearch(value) {
this.search = value
setSearch({ query }) {
this.search = query
},
resetSearch() {
this.search = ''
Expand Down
Loading

0 comments on commit eeb6649

Please sign in to comment.