Build assets and fix unified search event syntax
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
7991ed6cf3
commit
301006af20
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -426,8 +426,8 @@ export default {
|
||||||
/**
|
/**
|
||||||
* Register search
|
* Register search
|
||||||
*/
|
*/
|
||||||
subscribe('nextcloud:unified-search:search', this.search)
|
subscribe('nextcloud:unified-search.search', this.search)
|
||||||
subscribe('nextcloud:unified-search:reset', this.resetSearch)
|
subscribe('nextcloud:unified-search.reset', this.resetSearch)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* If disabled group but empty, redirect
|
* If disabled group but empty, redirect
|
||||||
|
@ -435,8 +435,8 @@ export default {
|
||||||
this.redirectIfDisabled()
|
this.redirectIfDisabled()
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
unsubscribe('nextcloud:unified-search:search', this.search)
|
unsubscribe('nextcloud:unified-search.search', this.search)
|
||||||
unsubscribe('nextcloud:unified-search:reset', this.resetSearch)
|
unsubscribe('nextcloud:unified-search.reset', this.resetSearch)
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -280,12 +280,12 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
subscribe('nextcloud:unified-search:search', this.setSearch)
|
subscribe('nextcloud:unified-search.search', this.setSearch)
|
||||||
subscribe('nextcloud:unified-search:reset', this.resetSearch)
|
subscribe('nextcloud:unified-search.reset', this.resetSearch)
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
unsubscribe('nextcloud:unified-search:search', this.setSearch)
|
unsubscribe('nextcloud:unified-search.search', this.setSearch)
|
||||||
unsubscribe('nextcloud:unified-search:reset', this.resetSearch)
|
unsubscribe('nextcloud:unified-search.reset', this.resetSearch)
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -312,14 +312,14 @@ export default {
|
||||||
this.types = await getTypes()
|
this.types = await getTypes()
|
||||||
},
|
},
|
||||||
onClose() {
|
onClose() {
|
||||||
emit('nextcloud:unified-search:close')
|
emit('nextcloud:unified-search.close')
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reset the search state
|
* Reset the search state
|
||||||
*/
|
*/
|
||||||
onReset() {
|
onReset() {
|
||||||
emit('nextcloud:unified-search:reset')
|
emit('nextcloud:unified-search.reset')
|
||||||
this.logger.debug('Search reset')
|
this.logger.debug('Search reset')
|
||||||
this.query = ''
|
this.query = ''
|
||||||
this.resetState()
|
this.resetState()
|
||||||
|
@ -371,7 +371,7 @@ export default {
|
||||||
*/
|
*/
|
||||||
async onInput() {
|
async onInput() {
|
||||||
// emit the search query
|
// emit the search query
|
||||||
emit('nextcloud:unified-search:search', { query: this.query })
|
emit('nextcloud:unified-search.search', { query: this.query })
|
||||||
|
|
||||||
// Do not search if not long enough
|
// Do not search if not long enough
|
||||||
if (this.query.trim() === '' || this.isShortQuery) {
|
if (this.query.trim() === '' || this.isShortQuery) {
|
||||||
|
|
Loading…
Reference in New Issue