Skip to content

Commit

Permalink
feat(search): move search api implementation to private namespace
Browse files Browse the repository at this point in the history
We decided to move the current search API implemented via global functions
to a the private namespace so we can remove it at any time without need for
deprecation.

Context: The current implementation of the API is not considered good enough
and is scheduled for removal.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
  • Loading branch information
nfebe committed Mar 5, 2024
1 parent 11a1888 commit a225828
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 a225828

Please sign in to comment.