mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
fix(search): fix load more
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
This commit is contained in:
parent
44d7dbb33d
commit
075bb5f6c5
1 changed files with 4 additions and 4 deletions
|
|
@ -145,7 +145,7 @@
|
|||
? t('core', 'Loading more results …')
|
||||
: t('core', 'Load more results')"
|
||||
:icon-class="loading[type] ? 'icon-loading-small' : ''"
|
||||
@click.stop="loadMore(type)"
|
||||
@click.prevent.stop="loadMore(type)"
|
||||
@focus="setFocusedIndex" />
|
||||
</li>
|
||||
</ul>
|
||||
|
|
@ -335,13 +335,13 @@ export default {
|
|||
},
|
||||
|
||||
async created() {
|
||||
subscribe('files:navigation:changed', this.resetForm)
|
||||
subscribe('files:navigation:changed', this.onNavigationChange)
|
||||
this.types = await getTypes()
|
||||
this.logger.debug('Unified Search initialized with the following providers', this.types)
|
||||
},
|
||||
|
||||
beforeDestroy() {
|
||||
unsubscribe('files:navigation:changed', this.resetForm)
|
||||
unsubscribe('files:navigation:changed', this.onNavigationChange)
|
||||
},
|
||||
|
||||
mounted() {
|
||||
|
|
@ -380,7 +380,7 @@ export default {
|
|||
emit('nextcloud:unified-search.close')
|
||||
},
|
||||
|
||||
resetForm() {
|
||||
onNavigationChange() {
|
||||
this.$el.querySelector('form[role="search"]').reset()
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue