Skip to content

Commit

Permalink
WIP: Investigating
Browse files Browse the repository at this point in the history
Revert removing search event handler in files app

Resolve : #43365

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
  • Loading branch information
Fenn-CS committed Feb 23, 2024
1 parent 3814ef6 commit 0927358
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion apps/files/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ import registerPersonalFilesView from './views/personal-files'
import registerFilesView from './views/files'
import registerPreviewServiceWorker from './services/ServiceWorker.js'


import { initLivePhotos } from './services/LivePhotos'

// Register file actions
Expand Down
1 change: 1 addition & 0 deletions apps/files/src/legacy/filelistSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { subscribe } from '@nextcloud/event-bus'

(function() {

console.debug("RESPOND TO FILTER EVENT")
const FilesPlugin = {
attach(fileList) {
subscribe('nextcloud:unified-search.search', ({ query }) => {
Expand Down
2 changes: 2 additions & 0 deletions apps/files/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import './legacy/filelistSearch.js'

import Vue from 'vue'
import { createPinia, PiniaVuePlugin } from 'pinia'
import { getNavigation } from '@nextcloud/files'
Expand Down
1 change: 0 additions & 1 deletion core/src/views/UnifiedSearchModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ export default {
this.searching = false
return
}
// Event should probably be refactored at some point to used nextcloud:unified-search.search
emit('nextcloud:unified-search.search', { query })
const newResults = []
const providersToSearch = this.filteredProviders.length > 0 ? this.filteredProviders : this.providers
Expand Down

0 comments on commit 0927358

Please sign in to comment.