You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
418 B
23 lines
418 B
export class LogSearch { |
|
name = 'logreader-search'; |
|
|
|
/** |
|
* @param {LogProvider} provider |
|
*/ |
|
constructor (provider) { |
|
this.provider = provider; |
|
this.initialize(); |
|
} |
|
|
|
initialize () { |
|
OC.Plugins.register('OCA.Search.Core', this); |
|
} |
|
|
|
attach (search) { |
|
search.setFilter('settings', _.debounce((query) => { |
|
if (query.length >= 3 || query == '') { |
|
this.provider.query = query; |
|
} |
|
}, 250)); |
|
} |
|
}
|
|
|