Skip to content

Commit

Permalink
Merge pull request #11723 from nextcloud/use-search-api-from-private-…
Browse files Browse the repository at this point in the history
…namespace

feat(search): move search api implementation to private namespace
  • Loading branch information
Antreesy authored Mar 5, 2024
2 parents 075cd25 + a225828 commit 9efd7e0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ import { generateFilePath, imagePath } from '@nextcloud/router'

import '@nextcloud/dialogs/style.css'

(function(OC, OCP, t, n) {
(function(OC, OCA, t, n) {

/**
*
*/
function init() {
if (!OCP.UnifiedSearch) {
if (!OCA.UnifiedSearch) {
return
}
console.debug('Initializing unified search plugin-filters from talk')
OCP.UnifiedSearch.registerFilterAction({
OCA.UnifiedSearch.registerFilterAction({
id: 'talk-message',
appId: 'spreed',
label: t('spreed', 'In conversation'),
Expand Down Expand Up @@ -94,8 +94,8 @@ import '@nextcloud/dialogs/style.css'
Vue.prototype.t = translate
Vue.prototype.n = translatePlural
Vue.prototype.OC = OC
Vue.prototype.OCP = OCP
Vue.prototype.OCA = OCA

document.addEventListener('DOMContentLoaded', init)

})(window.OC, window.OCP, t, n)
})(window.OC, window.OCA, t, n)

0 comments on commit 9efd7e0

Please sign in to comment.