summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/views
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-05-01 14:42:01 +0200
committernpmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>2020-05-01 13:39:57 +0000
commit31172a0cd917716c6022edbfa580e19a6da50db8 (patch)
tree7858e4ab7fe31bc53fca6532d359af0b5ff6b741 /apps/files_sharing/src/views
parent91487d87395819a6fa052440bd582ae54abd41a0 (diff)
downloadnextcloud-server-31172a0cd917716c6022edbfa580e19a6da50db8.tar.gz
nextcloud-server-31172a0cd917716c6022edbfa580e19a6da50db8.zip
Process shares only once, better debug and expiration date code
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/files_sharing/src/views')
-rw-r--r--apps/files_sharing/src/views/SharingTab.vue6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/files_sharing/src/views/SharingTab.vue b/apps/files_sharing/src/views/SharingTab.vue
index 2e68377b0b1..3aa3cf17706 100644
--- a/apps/files_sharing/src/views/SharingTab.vue
+++ b/apps/files_sharing/src/views/SharingTab.vue
@@ -189,10 +189,6 @@ export default {
},
},
- beforeMount() {
- this.getShares()
- },
-
methods: {
/**
* Get the existing shares infos
@@ -284,6 +280,8 @@ export default {
this.linkShares = shares.filter(share => share.type === this.SHARE_TYPES.SHARE_TYPE_LINK || share.type === this.SHARE_TYPES.SHARE_TYPE_EMAIL)
this.shares = shares.filter(share => share.type !== this.SHARE_TYPES.SHARE_TYPE_LINK && share.type !== this.SHARE_TYPES.SHARE_TYPE_EMAIL)
+ console.debug('Processed', this.linkShares.length, 'link share(s)')
+ console.debug('Processed', this.shares.length, 'share(s)')
}
},