Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(settings): Add event search listener on mounted to guarantee func…
…tion exists

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Mar 18, 2024
commit 8d750cfd1510177e27dd67bebd39ea748331b60c
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