aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r--apps/files_sharing/src/views/SharingLinkList.vue2
-rw-r--r--apps/files_sharing/src/views/SharingList.vue1
2 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/src/views/SharingLinkList.vue b/apps/files_sharing/src/views/SharingLinkList.vue
index 13db718886e..c87dcb59585 100644
--- a/apps/files_sharing/src/views/SharingLinkList.vue
+++ b/apps/files_sharing/src/views/SharingLinkList.vue
@@ -112,6 +112,7 @@ export default {
* @param {Function} resolve a function to run after the share is added and its component initialized
*/
addShare(share, resolve) {
+ // eslint-disable-next-line vue/no-mutating-props
this.shares.unshift(share)
this.awaitForShare(share, resolve)
},
@@ -140,6 +141,7 @@ export default {
*/
removeShare(share) {
const index = this.shares.findIndex(item => item === share)
+ // eslint-disable-next-line vue/no-mutating-props
this.shares.splice(index, 1)
},
},
diff --git a/apps/files_sharing/src/views/SharingList.vue b/apps/files_sharing/src/views/SharingList.vue
index 5c2a21c8bf8..0635ad27635 100644
--- a/apps/files_sharing/src/views/SharingList.vue
+++ b/apps/files_sharing/src/views/SharingList.vue
@@ -80,6 +80,7 @@ export default {
*/
removeShare(share) {
const index = this.shares.findIndex(item => item === share)
+ // eslint-disable-next-line vue/no-mutating-props
this.shares.splice(index, 1)
},
},