aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/views
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2023-09-17 19:05:54 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2023-09-18 15:33:21 +0200
commit2845319187c6ae118338575798a3413b4613ecb6 (patch)
tree7c4ed385a4be2ddd68d810a4e84fbefa9ea67d6a /apps/files/src/views
parente0c778f769a10a1f3edc365cc7aa115f119937aa (diff)
downloadnextcloud-server-2845319187c6ae118338575798a3413b4613ecb6.tar.gz
nextcloud-server-2845319187c6ae118338575798a3413b4613ecb6.zip
feat(files): add systemtags view
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/src/views')
-rw-r--r--apps/files/src/views/FilesList.vue12
1 files changed, 11 insertions, 1 deletions
diff --git a/apps/files/src/views/FilesList.vue b/apps/files/src/views/FilesList.vue
index 0b858a15e4d..d08f5a11874 100644
--- a/apps/files/src/views/FilesList.vue
+++ b/apps/files/src/views/FilesList.vue
@@ -328,12 +328,21 @@ export default Vue.extend({
},
},
+ mounted() {
+ this.fetchContent()
+ },
+
methods: {
async fetchContent() {
this.loading = true
const dir = this.dir
const currentView = this.currentView
+ if (!currentView) {
+ logger.debug('The current view doesn\'t exists or is not ready.', { currentView })
+ return
+ }
+
// If we have a cancellable promise ongoing, cancel it
if (typeof this.promise?.cancel === 'function') {
this.promise.cancel()
@@ -373,7 +382,8 @@ export default Vue.extend({
this.pathsStore.addPath({ service: currentView.id, fileid: node.fileid, path: join(dir, node.basename) })
})
} catch (error) {
- logger.error('Error while fetching content', { error })
+ throw error
+ // logger.error('Error while fetching content', { error })
} finally {
this.loading = false
}