mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
fix(search): fix load more
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
This commit is contained in:
parent
5e02def3f4
commit
7e51305ae4
11 changed files with 19 additions and 17 deletions
|
|
@ -328,10 +328,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')
|
||||
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
},
|
||||
|
||||
|
|
|
|||
4
dist/core-common.js
vendored
4
dist/core-common.js
vendored
File diff suppressed because one or more lines are too long
2
dist/core-common.js.LICENSE.txt
vendored
2
dist/core-common.js.LICENSE.txt
vendored
|
|
@ -384,6 +384,8 @@ object-assign
|
|||
|
||||
/*! For license information please see NcAppNavigationNew.js.LICENSE.txt */
|
||||
|
||||
/*! For license information please see NcAppNavigationNewItem.js.LICENSE.txt */
|
||||
|
||||
/*! For license information please see NcAppNavigationSettings.js.LICENSE.txt */
|
||||
|
||||
/*! For license information please see NcAppNavigationSpacer.js.LICENSE.txt */
|
||||
|
|
|
|||
2
dist/core-common.js.map
vendored
2
dist/core-common.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/core-unified-search.js
vendored
4
dist/core-unified-search.js
vendored
File diff suppressed because one or more lines are too long
2
dist/core-unified-search.js.map
vendored
2
dist/core-unified-search.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/settings-users-8351.js
vendored
4
dist/settings-users-8351.js
vendored
File diff suppressed because one or more lines are too long
2
dist/settings-users-8351.js.map
vendored
2
dist/settings-users-8351.js.map
vendored
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
Loading…
Reference in a new issue