Merge pull request #38318 from nextcloud/backport/38303/stable26

[stable26] fix(search): fix load more
This commit is contained in:
Simon L 2023-05-16 22:36:06 +02:00 committed by GitHub
commit 342e5e6ed9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

View file

@ -324,10 +324,10 @@
this.setActiveView(params.view, {silent: true});
if (lastId !== this.getActiveView()) {
this.getCurrentAppContainer().trigger(new $.Event('show', params));
window._nc_event_bus.emit('files:navigation:changed')
}
this.getCurrentAppContainer().trigger(new $.Event('urlChanged', params));
window._nc_event_bus.emit('files:navigation:changed')
},

View file

@ -135,7 +135,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>
@ -351,13 +351,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() {
@ -396,7 +396,7 @@ export default {
emit('nextcloud:unified-search.close')
},
resetForm() {
onNavigationChange() {
this.$el.querySelector('form[role="search"]').reset()
},

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long