Browse Source

Fix adding to empty attributes and duplicate request

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/32482/head
Julius Härtl 4 years ago
committed by Carl Schwan
parent
commit
2fb7a1feeb
No known key found for this signature in database GPG Key ID: C3AA6B3A5EFA7AC5
  1. 3
      apps/files_sharing/src/components/SharingEntry.vue
  2. 1
      apps/files_sharing/src/models/Share.js

3
apps/files_sharing/src/components/SharingEntry.vue

@ -428,9 +428,8 @@ export default {
this.share.permissions = permissions
if (this.share.hasDownloadPermission !== isDownloadChecked) {
this.share.hasDownloadPermission = isDownloadChecked
this.queueUpdate('attributes')
}
this.queueUpdate('permissions')
this.queueUpdate('permissions', 'attributes')
},
/**

1
apps/files_sharing/src/models/Share.js

@ -50,6 +50,7 @@ export default class Share {
console.warn('Could not parse share attributes returned by server: "' + ocsData.attributes + '"')
}
}
ocsData.attributes = ocsData.attributes ?? []
// store state
this._share = ocsData

Loading…
Cancel
Save